develooper Front page | perl.perl5.porters | Postings from September 2014

Re: [perl #20510] lvalue references would be nice

Thread Previous | Thread Next
Ricardo Signes
September 22, 2014 22:22
Re: [perl #20510] lvalue references would be nice
Message ID:
* Father Chrysostomos via RT <> [2014-09-21T16:35:33]
> If *Other::x = \$y sets the imported flag, should \$Other::x = \$y do the
> same?

Boy, that's a good question!

When I started thinking, I thought yes.  I convinced myself otherwise.

\$x = \$y has, in this hypothetical future, a clear meaning.  Having it turn on
the imported flag muddies its behavior.  I can think of it causing, but not
alleviating, confusion.  If the mark-imported is desired, it can be gotten in a
separate, explicit step... and I can imagine not always desiring it.

Do you see some real value that I am missing?


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