develooper Front page | perl.perl5.porters | Postings from May 2018

[perl #133202] squaring a reference doesn't cause an error

Thread Previous | Thread Next
From:
Dan Book via RT
Date:
May 15, 2018 22:58
Subject:
[perl #133202] squaring a reference doesn't cause an error
Message ID:
rt-4.0.24-17838-1526425086-1432.133202-15-0@perl.org
On Tue, 15 May 2018 15:42:34 -0700, simcop2387@simcop2387.info wrote:
> It might be useful to have this as a warning if it isn't already.  I'd
> imagine that this isn't the expected result for most people.

Probably reasonable to warn if any mathematical operation other than 0+ is done on a reference without overloads, if possible.

-Dan


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=133202

Thread Previous | Thread Next


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