[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Ideas for method chaining implementation
- From: "Andre Carregal" <carregal@...>
- Date: Wed, 6 Jul 2005 12:02:49 -0300
> Mark Hamburg wrote
> ...
> Doing so involves modifying the function environment for the
> methods in ThisClass so that they have appropriate definitions of next.
>
> Note, however, that there isn't a way in Lua to duplicate a
> function and give it a new environment which makes playing with function
> environments a little bit risky.
I may be completely off mark here, but have you checked VEnv
(http://www.keplerproject.org/venv/)?
VEnv offers a way to create a new environment to a function that inherits
from the "outer" environment, but I'm not sure if this is what you are
looking for.
André