develooper Front page | perl.perl6.language | Postings from March 2005

Re: &wrap, &call and goto &sub

Thread Previous | Thread Next
From:
Autrijus Tang
Date:
March 16, 2005 10:39
Subject:
Re: &wrap, &call and goto &sub
Message ID:
20050316183845.GA94997@aut.dyndns.org
On Wed, Mar 16, 2005 at 10:24:16AM -0800, Larry Wall wrote:
> On Wed, Mar 16, 2005 at 08:46:03PM +0800, Autrijus Tang wrote:
> : Is using wrap/call the correct choice here, or is there another way
> : to do it that I missed?
> 
> wrap/call should do what you want there, but if you want to hack in
> &func.goto, that'd be good too.

Done as r804.  It also passes the expected context ("want") of its
original caller to &func, which I assume is the correct behaviour.

Thanks,
/Autrijus/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About