develooper Front page | perl.perl5.porters | Postings from April 2007

Re: idea for yet another LNV and caller() return value (was: The Strict trap)

Thread Previous | Thread Next
From:
Artur Bergman
Date:
April 25, 2007 13:48
Subject:
Re: idea for yet another LNV and caller() return value (was: The Strict trap)
Message ID:
5530996D-0DAC-498F-B887-CBF1ED7E69DA@crucially.net

On Apr 25, 2007, at 1:38 PM, David Nicol wrote:

> On 4/25/07, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote:
>
>> You mean add Hook::Scope to the core ?
>> (I haven't tested it with blead, but since it's ridiculously  
>> simple, I
>> think it should.)
>
> first, extend it so it becomes possible to add things to POST blocks
> in enclosing, outer scopes somehow, even accross package and file  
> boundaries,
> so it can be used for implying unimport.
>
> And also either remove, or commit to keeping the block around C<use>.
>
> But yes, Hook::Scope is clearly better than shoehorning a POST hook
> into a tied lexical's DESTROY method.
>
> Thanks.

What are we trying to accomplish? And yes Hook::Scope before I  
started to move it to compile time status was really simple.

LEAVE;
savedestructor_x
ENTER;

artur


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