Re: %MY (was What's MY.line?)
On Thu, Jul 11, 2002 at 04:43:34PM -0400, Melvin Smith wrote: And side effects like I call you, you modify me invisibly seems more like taking dangerous drugs than programming. Yep, I warned you about calling that routine, now look what it did to your brains. Um, I shouldn't really mention Devel::LexAlias then, since with it you can already write caller(1).MY{'$y'} := caller(1).MY{'$x'}; as lexalias(1, $y, upto(1, $x)); Where upto is would be a simple wrapper around my Devel::Caller::caller_cv and Robin Houston's PadWalker::peek_sub No, I'm not waiting till perl6 for the drugs to kick in... -- Richard Clamp [EMAIL PROTECTED]
Re: %MY (was What's MY.line?)
At 4:43 PM -0400 7/11/02, Melvin Smith wrote: The only real use I can see of %MY is debugging. If people are going to take handles to pads and modify lexicals in closures, continuations and routines from the outside, it probably means that the item needs to be a class. Yeah, I'm expecting it to be used mainly for introspective things. It's also useful, at compile time, for changing the caller's environment, but that's not what we're worried about, I expect. -- Dan --it's like this--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk