develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #109146] 3-arg open of undef for read

From:
Father Chrysostomos via RT
Date:
January 27, 2012 12:46
Subject:
[perl #109146] 3-arg open of undef for read
Message ID:
rt-3.6.HEAD-14510-1327697201-1132.109146-15-0@perl.org
On Fri Jan 27 03:31:29 2012, zefram@fysh.org wrote:
> Nicholas Clark wrote:
> >I think that a comprehensive fix should be possible. Note that XS can
tell
> >the difference:
> 
> Better to distinguish at compile time.  Literal "undef" is a different
> opcode from "$undefined" or "$hash{typoed_key}".

Please don’t add more special-cased parsing to open().  It’s complex
enough already.  Also, your proposal is not backward-compatible.

-- 

Father Chrysostomos


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



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