develooper Front page | perl.perl5.porters | Postings from November 2010

Re: [perl #78740] The (+) prototype is too limiting

Thread Previous
From:
Zefram
Date:
November 1, 2010 03:11
Subject:
Re: [perl #78740] The (+) prototype is too limiting
Message ID:
20101101101118.GJ24999@lake.fysh.org
Father Chrysostomos wrote:
>I have often wished that the \$ prototype could take any scalar expression,

That would yield a ref to a temporary in some cases.  It is a useful
feature that \$ will reject a non-lvalue.

-zefram

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About