Re: RFC 178 (v1) Lightweight Threads

2000-09-01 Thread Steven W McDougall
> KF> #!/my/path/to/perl > KF> sub foo_generator { my $a = shift; sub { print $a++ } } > KF> my $foo = foo_generator(1); > KF> $foo->(); > Thread-> new($foo); > KF> Is $a shared between threads or not? If $a is not shared, we've broken > KF> lexicals. > Not unless it is so declar

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-01 Thread Tom Christiansen
>> "TC" == Tom Christiansen <[EMAIL PROTECTED]> writes: >TC> Well, that depends. Often you must delay till run-time. When Perl >TC> simply sees something like: >TC> sub fn { return @blah } >TC> it can't know whether you'll use that as: >TC> $x = fn(); >TC> or >TC> @x = fn(); >T

Re: RFC 185 (v1) Thread Programming Model

2000-09-01 Thread Steven W McDougall
> I'm not completely sure what you are trying to do with this RFC. This RFC describes the programming interface to Perl6 threads. It documents the function calls, operators, classes, methods, or whatever else the language provides for programming with threads. Perl5 has a thread interface, bu

Re: RFC 178 (v1) Lightweight Threads

2000-09-01 Thread Chaim Frenkel
> "KF" == Ken Fox <[EMAIL PROTECTED]> writes: KF> The more interesting case is this: KF> #!/my/path/to/perl KF> sub foo_generator { my $a = shift; sub { print $a++ } } KF> my $foo = foo_generator(1); KF> $foo->(); Thread-> new($foo); KF> Is $a shared between threads or not?

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

2000-09-01 Thread Chaim Frenkel
> "TC" == Tom Christiansen <[EMAIL PROTECTED]> writes: TC> Well, that depends. Often you must delay till run-time. When Perl TC> simply sees something like: TC> sub fn { return @blah } TC> it can't know whether you'll use that as: TC> $x = fn(); TC> or TC> @x = fn(); TC> or TC>