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 14:14
Subject:
Re: idea for yet another LNV and caller() return value (was: The Strict trap)
Message ID:
29755272-63C5-4E04-8E40-F1EDF64F1562@crucially.net

On Apr 25, 2007, at 2:13 PM, Artur Bergman wrote:

>
> On Apr 25, 2007, at 2:11 PM, David Nicol wrote:
>
>> On 4/25/07, Artur Bergman <sky@crucially.net> wrote:
>>
>>> What are we trying to accomplish?
>>
>> do something within an import subroutine that sets a POST hook in
>> the caller's scope. (to imply the unimport subroutine, for instance.)
>>
>> This would provide dynamic C<local> semantics for pragmata,
>> as an alternative to the C<my> semantics provided by %^H.
>>
>>
>> --  
>> practical solutions to systemic problems
>
> there is a problem
>
> BEGIN {
>  import()
> }
>
> is two scopes
>
> artur
>

though you could just walk the destructor stack I guess and insert it  
on the right place, it is quite simple

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