lua-users home
lua-l archive

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


Sam Roberts <sroberts@bycast.com> writes:
> Why would you prefer:
>
>    load_copy = copy_fun(load)
>
> to
>
>    load_copy = load
>
> ?

I thought that Graham wanted to copy it so he could set the fenv
separately without disturbing the fenv of the original function -- but
now I realize my method won't work either, as the wrapped function will
use its old fenv, not the wrapper's ...

So I guess for his purpose, some sort of lower-level copy would be
necessary.

-miles

-- 
It wasn't the Exxon Valdez captain's driving that caused the Alaskan oil spill.
It was yours.  [Greenpeace advertisement, New York Times, 25 February 1990]