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

Re: [DOCPATCH] BEGIN, CHECK, INIT, END explained more

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
December 3, 2003 04:46
Subject:
Re: [DOCPATCH] BEGIN, CHECK, INIT, END explained more
Message ID:
20031203134327.301ca80f.rgarciasuarez@free.fr
Arthur Bergman wrote:
> 
> And this is IMHO a bug, they should be run whenever something is fully 
> compiled. As they stand they are utterly useless.

Nope -- they are useful to exactly one and precisely defined thing : the
B:: modules. Every other use of CHECK/INIT is a bad hack.

What's needed IMO is yet another special code block -- COMPILED, START,
better names welcome -- run when the compilation of the said compilation
unit ends, regardless of the state of the main perl interpreter.

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