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

module init hooks and pragmas

From:
Gaal Yahas
Date:
July 30, 2005 10:40
Subject:
module init hooks and pragmas
Message ID:
20050730173929.GE1129@sike.forum2.org
What gets called for me when someone "use"s my module? What gets called
when someone "no"s it?

L<S11/Importation> stipulates a standard syntax for import lists, and
that's probably a good thing, but then how do you pass other compile-time
requests to code that's being used?

Perhaps in light of L<S04/Closure traits>, we can make "use" and "no"
activate TURNON and TURNOFF blocks?

-- 
Gaal Yahas <gaal@forum2.org>
http://gaal.livejournal.com/



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