Nigel Sandever <[EMAIL PROTECTED]> wrote:

> When a sub that closes over a variable

>       my $closure = 0;
>       sub do_something {
>               return $closure++:
>       }

> is called from two threads, do the threads share a single closure or
> each get their own separate closure?

AFAIK: the closure bytecode is shared, the Closure PMC with the lexical
pad is distinct. But that all isn't implemented yet.

> njs

leo

Reply via email to