develooper Front page | perl.perl5.porters | Postings from October 2009

Re: [perl #70043] Re: [Sysadmins] Perl allows non-sensical operations on reference converted to an integer

Thread Previous | Thread Next
From:
demerphq
Date:
October 27, 2009 06:55
Subject:
Re: [perl #70043] Re: [Sysadmins] Perl allows non-sensical operations on reference converted to an integer
Message ID:
9b18b3110910270655i46878a16x984c6805fbfdef75@mail.gmail.com
2009/10/27 Rafael Garcia-Suarez <rgs@consttype.org>:
> 2009/10/27 Ricardo Signes <perl.p5p@rjbs.manxome.org>:
>> * Aristotle Pagaltzis <pagaltzis@gmx.de> [2009-10-27T08:45:18]
>>> * George Greer <perl@greerga.m-l.org> [2009-10-27 13:15]:
>>> > I'd perhaps use it as a "no stringify;" (like "no indirect;")
>>>
>>> A better name might be something like `no refconv;` (which would
>>> include preventing numeric operations on numified references).
>>
>> I believe, but have not Googled, that MJD proposed this some time ago as C< no
>> strict 'deref' >.
>
> No, he proposed it as C<use strict 'refs'> :
> http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-12/msg00924.html
> and suggested making an exception for hash keys.
>
> I think that it should be added in a new pragma.
>
> If we add a new strict subpragma, like C<use strict
> "stringificationofrefs">, we'll have problems, because people will
> want to disable it locally by doing C<use strict; no strict
> "stringificationofrefs">, and that would be a fatal error on earlier
> perls.

Have we fixed this is new perls?

That is made no strict/no warnings future portable?

If not, perhaps we should?

Yves




-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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