RE: Euphoria ver 2.3
gertie at ad-tek.net wrote:
> 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)
IMHO it will become very confusing when you get 5 peoples includ files
and they all have fuctions of the same name, maybe even same prams.
>
> 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
>
Grape Vine
13728824
|
Not Categorized, Please Help
|
|