[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: self copying functions
- From: Miles Bader <miles@...>
- Date: Fri, 16 Mar 2007 08:29:54 +0900
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]
- References:
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: Colon Operator: Superfluous Syntax?, Rici Lake
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: Colon Operator: Superfluous Syntax?, David Haley
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: Colon Operator: Superfluous Syntax?, Kein-Hong Man
- Re: Colon Operator: Superfluous Syntax?, Brian Hagerty
- Re: self (was Colon Operator: Superfluous Syntax?), Graham Wakefield
- Re: self (was Colon Operator: Superfluous Syntax?), Graham Wakefield
- Re: self, Miles Bader
- Re: self copying functions, Sam Roberts