On Thu, Jul 14, 2005 at 04:32:13PM +0100, Nicholas Clark wrote: : How will the perl6 compiler cope with people creating threads inside : BEGIN blocks?
Probably break, if they meant INIT. I can't think of a static way to detect that offhand, so I'm okay if we just call it erroneous. Or maybe there's some way at CHECK time to mark threads to complain if they do any real work later than CHECK time. Or we could just blow away any extra threads we find hanging around at CHECK time and see who screams. :-) (It would also be good if we could fix Perl 5 to make INIT always run as early as possible after CHECK time, even if it's "too late", especially if we actually want to start encouaging people to use INIT correctly before they move to Perl 6.) Larry