On 7/14/05, Nicholas Clark <[EMAIL PROTECTED]> wrote: > This is more a "note to collective 'self'" question than one I expect the > answer to right now. (The answer I expect right now is a glib "it will") > > How will the perl6 compiler cope with people creating threads inside > BEGIN blocks?
A glib "it won't". Unless someone can come up with a reason you would want to do that. Perl 6's compilation model is such that you can't do anything at compile time under the assumption that you will be running it in the same process. So the only reason you would want a thread at BEGIN time is if you're doing some kind of threaded compilation, which blows my mind. I don't have much experience with threads, but putting myself in the shoes of someone who does, I still can't think of any application for that. So it's probably best to outlaw it to keep people from doing it accidentally. Luke