On Thu, Apr 10, 2008 at 2:16 AM, Mark J. Reed <[EMAIL PROTECTED]> wrote: > JMD> Consider the words that may be used to introduce a block for a special > JMD> purpose, like > JMD> > JMD> BEGIN > JMD> END > JMD> INIT > JMD> CATCH > JMD> etc. > JMD> > JMD> What do you call those? > > Well, lessee. The Common Lisp spec calls them "situations" in the > definition of (eval-when)... > > JMD> They are not even "special named blocks" because > JMD> that is not the block name (that already means something). > > Now you've lost me. I was pretty sure that was the block name. AIUI, > you can give arbitrary names to any block, and these names function > the same way (i.e. can be used in flow control statements), but they > also happen to control when the block is actually evaluated. > > CO> The perldocs call them "Five specially named code blocks", The Camel > CO> names them individually (e.g. BEGIN block). How about phase blocks? > CO> They control in what phase of compilation/runtime the code runs in. > > I don't know, "phase" sounds too specific to me. Does the catching of > an exception really bring us into a new phase of execution? What > about the LAST time through a loop? etc. > > > -- > Mark J. Reed <[EMAIL PROTECTED]> >
It looks like they already have a name in S04: Closure traits*. * http://dev.perl.org/perl6/doc/design/syn/S04.html#Closure_traits -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read.