Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-09 Thread Adam D. Lopresto
On Tue, 8 Jun 2004, Matthew Walton wrote: Ingo Blechschmidt wrote: One should be able to unwrap $subref using $id.unwrap(); Something tells me that you shouldn't be able to do that. Wrapping is an operation on the subref, which implies very strongly to me that unwrapping should

Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread Ingo Blechschmidt
Hello, quoting Apocalypse 6: You may ask a subroutine to wrap itself up in another subroutine in place, so that calls to the original are intercepted and interpreted by the wrapper, even if access is only through the reference: $id = $subref.wrap({ # preprocessing here

Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread Matthew Walton
Ingo Blechschmidt wrote: Hello, quoting Apocalypse 6: You may ask a subroutine to wrap itself up in another subroutine in place, so that calls to the original are intercepted and interpreted by the wrapper, even if access is only through the reference: $id = $subref.wrap({ #

Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread Luke Palmer
Ingo Blechschmidt writes: One should be able to unwrap $subref using $id.unwrap(); Or, given $id, it'd be cool if you could get the original $subref: my $origsubref = $id.sub(); Additionally, $id could coerce to an ID number in numeric context, so $subref.unwrap($id);

Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread David Storrs
On Tue, Jun 08, 2004 at 01:08:13PM -, Ingo Blechschmidt wrote: Hello, quoting Apocalypse 6: You may ask a subroutine to wrap itself up in another subroutine in place, so that calls to the original are intercepted and interpreted by the wrapper, even if access is only through the

Re: Apocalypse 6: IDs of subroutine wrappers should be objects

2004-06-08 Thread Dan Sugalski
On Tue, 8 Jun 2004, David Storrs wrote: On Tue, Jun 08, 2004 at 01:08:13PM -, Ingo Blechschmidt wrote: Hello, quoting Apocalypse 6: You may ask a subroutine to wrap itself up in another subroutine in place, so that calls to the original are intercepted and interpreted by the