1. Namespaces and Wishlist
--
David:
Couldn't you just have a hidden internal pointer that is
added to each routine when the namespace for that routine is declared.
Then you could use the same name for a routine and the interpeter
would look at this hidden internal pointer and know which routine
to call thus eliminating any prefix.
Wish List:
Wouldn't it be nice if Rob would have Euphoria return a routine_id
for built-in functions. Then we could modify the behavior
of a function by over riding its definition but still be able to use
it as the default action.
Bernie
2. Re: Namespaces and Wishlist
On Tue, 24 Oct 2000, Bernie wrote:
> --
> David:
>
> Couldn't you just have a hidden internal pointer that is
> added to each routine when the namespace for that routine is declared.
> Then you could use the same name for a routine and the interpeter
> would look at this hidden internal pointer and know which routine
> to call thus eliminating any prefix.
I am confused: Suppose I have two files to include: one defines points, the
other sprites.... both have coordinates x and y, and a function named draw()
How would I access the points x and the sprites.x, or the correct draw(),
without some kind of prefix?
Irv
3. Re: Namespaces and Wishlist
On Tue, 24 Oct 2000 14:56:16 -0400, Irv <irv at ELLIJAY.COM> wrote:
>How would I access the points x and the sprites.x, or the correct draw(),
>without some kind of prefix?
Irv:
I guess you can't. :)
Bernie