lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > Basically you want to break a function abstraction, interfering from the
> > outside in what the function does inside. This is a hack, no matter how
> > you implement it. This kind of thing should not be a regular operation
> > in the language (as it was with setfenv).
> 
> Are you saying that this is not something you should do, or that if
> you decide to do something this extreme (which fundamentally changes
> the behaviour of specific scripts you load) you shouldn't be afraid of
> using debug.upvaluejoin in the implementation?

The second option.

-- Roberto