Re: Why use routine_id?
----- Original Message -----
From: "Liu Junfeng" <rufi at 163.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: Why use routine_id?
[snip]
> I think the main reason is that Eu doesn't have a function type.
> In routine_id, a function is really passed as a sequence, and return a
> integer. I've just forgotten this point.
What *ARE* you talking about. This makes no sense at all!
Euphoria does have a function type!
function aaa()
return 1
end function
a = routine_id("aaa")
x = call_func(a,{})
The NAME of a function/procedure is passed as a parameter to routine_id()
and that returns an integer. The integer is an index into an internal table
of routines that the program knows about.
|
Not Categorized, Please Help
|
|