develooper Front page | perl.perl5.porters | Postings from February 2003

Re: Did the assertion patch/feature submission get overlooked?

From:
Rafael Garcia-Suarez
Date:
February 18, 2003 00:45
Subject:
Re: Did the assertion patch/feature submission get overlooked?
Message ID:
20030218094550.37fefefc.rgarciasuarez@free.fr
Salvador Fandiño <sfandino@yahoo.com> wrote:
> 
> 
> Rafael Garcia-Suarez wrote:
> 
> >>>Yes, that would be a good idea : something like "assertion never activated at ..."
> >>
> >>This would require to take another bit from PL_hints, is that ok?
> >  
> > Another hint ? Why ?
> 
> to know if in the current scope "use assertions" has been seen before. A 
> global is not enough because when a new file is 'require'd the hints are 
> set again to 0 and so assertions should be declared again.

OK, I got it.
with the current implementation it's possible to know whether the block
being compiled should include assertions or not (based on the -A switch value)
but it's not possible to know what is the "current value" of the assertion
keywords (the ones that are passed to assertions::import()).

I imagine you could use %^H for that.



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