At 01:58 PM 5/4/2001 +0200, Artur Bergman wrote:
>01-05-03 18.48, skrev Doug MacEachern p� [EMAIL PROTECTED] f�ljande:
>
> > On Thu, 3 May 2001, Artur Bergman wrote:
> >
> >> does :shared work in bleadperl? attrs.pm doesn't seem to have a clue about
> >> it? There are two issues here as I see it.
> >
> > the shared attribute works in bleedperl, but it does not mean what you
> > think it means.  search the archives for GvSHARED, in particular:
> > 
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2001-02/msg00535.html
> > in a nutshell, GvSHARED GVs are not copied across perl_clone, and
> > piggyback the existing SvREADONLY checks for memory
> > savings.  these `shared' GVs cannot be written to once marked as GvSHARED.
>
>Unless one unmarks them and protect them using Mutexes. (just turn of
>readonly)

Just make sure that it's *really* readonly. That means no 
stringification/numification after the flag is set.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to