Re: threads?

2010-10-24 Thread Christian Mueller
I would implement threads in the following form $thread_counter = 0; $global = "lock"; $thread = new thread( \&thread_sub ); $thread->start(); thread_sub { lock( $global ) { print "i'm thread ", ++$thread_counter, "\n"; } } It's a mixture of ithreads and the C# t

Re: Multiline comments in Perl6

2007-12-30 Thread Christian Mueller
>> Thanks for the reply - can you please what is the problem with having it in the beginning of the line? > > Short answer: the compiler has no way of knowing whether the > programmer wants an embedded comment or a line comment; so instead of guessing, it requires the programmer to disambiguate. >

Multiline comments in Perl6

2007-12-29 Thread Christian Mueller
Hello list, i don't know the actually state in the discussion about multiline comments, but i would propose an idea.. a combination of POD's = and the traditional route char... =# this is a multi line comment #= =# comment #= this is not commented What you think about it? regards Christian