On Sun, Jan 20, 2002 at 05:29:39AM -0800, Damian Conway wrote: > On Saturday 19 January 2002 22:05, Brent Dax wrote: > > > Is this list of special blocks complete and correct? > > Close and close. As of two days ago, Larry's thinking was: > > BEGIN Executes at the beginning of compilation > CHECK Executes at the end of compilation > INIT Executes at the beginning of run > END Executes at the end of run > PRE Executes at block entry. > Inherited if block is a method. No side-effects >allowed. > POST Executes at block exit. > Inherited if block is a method. No side-effects >allowed. > NEXT Executes on (explicit or implicit) call to next() > within current block
If a POST is inside a loop, is it executed at the end of each iteration or only when the loop exits ? If it is only when the loop exits, will it be possible to designate a block to be multiple (eg both POST and NEXT) Graham. > CATCH Executes on exception within current block > LAST Executes on any form of block exit. > Not inherited (c.f. POST), even if block is a method. > Side-effects allowed. > KEEP Specialized form of CATCH. > Executes on "control" exception in the current block > UNDO Specialized form of CATCH. > Executes on non-"control" exception in the current >block > > Damian > >