develooper Front page | perl.perl5.porters | Postings from July 2013

Re: recent inconsistencies in object calling

Thread Previous
From:
Nicholas Clark
Date:
July 2, 2013 09:35
Subject:
Re: recent inconsistencies in object calling
Message ID:
20130702093457.GD3729@plum.flirble.org
On Wed, Jun 26, 2013 at 05:39:26PM +0200, H.Merijn Brand wrote:
> This might need tests ...

> $ perl5.19.0 -wE'rt->insert ("bug")'
> Unquoted string "rt" may clash with future reserved word at -e line 1.
> Can't locate object method "insert" via package "rt" (perhaps you forgot to load "rt"?) at -e line 1.
> $ perl5.19.0 -wE'rt2->insert ("bug")'
> Can't locate object method "insert" via package "rt2" (perhaps you forgot to load "rt2"?) at -e line 1.
> 
> $ perl5.19.1 -wE'rt->insert ("bug")'
> Unquoted string "rt" may clash with future reserved word at -e line 1.
> Segmentation fault
> $ perl5.19.1 -wE'rt2->insert ("bug")'
> Segmentation fault
> 
> $ bleadperl -wE'rt->insert ("bug")'
> Unquoted string "rt" may clash with future reserved word at -e line 1.
> Can't locate object method "insert" via package "rt" (perhaps you forgot to load "rt"?) at -e line 1.
> $ bleadperl -wE'rt2->insert ("bug")'
> Can't locate object method "insert" via package "rt2" (perhaps you forgot to load "rt2"?) at -e line 1.

It already fails this test in t/run/fresh_perl.t

########
$x=0x0eabcd; print $x->ref;
EXPECT
Can't locate object method "ref" via package "961485" (perhaps you forgot to load "961485"?) at - line 1.
########

(when built on a 32-bit system with -Duse64bitit)

Adding more tests that also fail isn't going to address the actual problem.

Nicholas Clark

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