Re: Why use routine_id?

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

----- 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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu