Re: Euphoria ver 2.3

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:

> Why not allow this?
>
> function x(sequence a)
> function x(integer b, sequence a)
> function x(atom a)

Well, you can't determine the type that an 'object' will be until runtime:

   object o
   ...
   x( o )

The interpreter is at a loss how to link this until runtime. Adding late
binding would be a major change for Euphoria. And if you disallowed object
in parameter lists, you'd break a *lot* of code.

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu