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

[perl #4539] '&' prototype permits any non-single refgen

Thread Previous
From:
Father Chrysostomos via RT
Date:
November 25, 2014 06:33
Subject:
[perl #4539] '&' prototype permits any non-single refgen
Message ID:
rt-4.0.18-5817-1416897228-15.4539-15-0@perl.org
On Sat Oct 28 22:42:19 2000, dan@brumleve.com wrote:
> 
> This is a bug report for perl from dan@www.brumleve.com,
> generated with the help of perlbug 1.28 running under perl v5.6.0.
> 
> 
> -----------------------------------------------------------------
> 
> # This happens in 5.7.0 as well...
> 
> twumtwum$ perl -de0
> # ...
>   DB<1> sub foo(&) { @_ }
> 
> DB<2> x foo(\(1,2))
> 0  SCALAR(0x82448b4)
>  -> 1
> 1  SCALAR(0x82448c0)
>  -> 2

I fixed this in e41e9865be.

-- 

Father Chrysostomos


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

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