It would be nice if perl had some better name spacing, threaded objects get very confusing when you try to work out scooping issues, at least, they do for me :)
So, just to be awkward, can we not prefix these statements with threads_ or something? my $foo : thread_shared; otherwise namespace collision is bound to happen sooner or later... ray -----Original Message----- From: Arthur Bergman [mailto:[EMAIL PROTECTED]] Sent: 24 July 2002 10:42 To: Elizabeth Mattijsen Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: threads in threads? On onsdag, juli 24, 2002, at 11:39 , Elizabeth Mattijsen wrote: > > Ok with me, I'm interested in functionality only... and some way to be > able to explain it to people... ;-) So the list would be: > > unshared current state if not shared: copied when cloning > shared accessible to all threads, not copied > unique only accessible in thread, not copied > > ? > > no, unique is already used, it makes it readonly between all threads why do we need three states my $foo; #depends on global sharedness my $foo : shared; #always shared my $foo : unshared; # never shared my $foo : unique; #shared readonly between all threads Arthur
