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 s
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
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
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
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({
# preprocessing