At 11:25 AM 7/24/02 +0200, [EMAIL PROTECTED] wrote:
> > sub name {
> > use threads::shared ':all';
> > my $scalar; # would have : shared attribute
> > my $other : private; # would _not_ have : shared attribute
> > }
>one should be able to declare this for packages, outside these packages.
Of course, a "threads::shared ':all' at the package level, would apply to
the whole package. Which you can override in any lower scope. Sorry if
that wasn't clear.
>... i
>guess that the clone-all strategy was chosen to make the transition to
>ithreads when using old code easier. so the "new" program knows how to
>handle the packages it uses, and which have to be cloned or not.
I think so... I've missed most of the threads discussions on p5p... maybe
Arthur can tell more about that...
Liz