develooper Front page | perl.perl5.porters | Postings from June 2013

Re: experimental: "our $attribute :unique"

Thread Previous
Elizabeth Mattijsen
June 14, 2013 08:24
Re: experimental: "our $attribute :unique"
Message ID:
On Jun 14, 2013, at 4:12 AM, Ricardo Signes <> wrote:
> "our" variables, in 5.8, could start taking a ":unique" attribute for use with
> data sharing between threads.
> This was made into a no-op in 5.10 and deprecated in 5.12 (perlexperiment's
> claims to the contrary).  I made a branch, rjbs/not-unique, in which to finally
> remove any reference to the attribute from core.  It will require synchronizing
> with the threads dist.
> 1) Do we want to do this, or are we holding hope for the restorating of some
>   way to restore this attribute?

Afaik, that never really worked and only caused confusion.  For sharing data between threads, you need the :shared attribute anyway.  It always felt as an premature micro-optimization, much like the "register" prefix was in C.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About