Re: Euphoria ver 2.3

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

On 3 Jun 2001, at 19:22, Bernie Ryan wrote:

> 
> 
>   I hope version 2.3 is going to allow FORWARD REFERENCES
>   instead of the stupid routine_id()
> 
> Rob:
> 
>   Why can't you just allow a user to redefine a routine if
>   the routine has the exact same parameter list.

Why not allow this?

function x(sequence a)
function x(integer b, sequence a)
function x(atom a)

Then the interpreter can check the passed parms as it does now, and drop them
into
the correct function. Like this: when the interpreter is running thru the list
of functions,
and the name is found but parameter list types don't match, store the error, but
don't
report it, and keep searching the list. If the name and types match later in the
list, use
it. If the name and types never match, then report the error.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu