develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [perl #21787] Problem in 5.8.0 fields/base pragmata

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 5, 2003 05:26
Subject:
Re: [perl #21787] Problem in 5.8.0 fields/base pragmata
Message ID:
20030405153006.66f12150.rgarciasuarez@free.fr
talkasab@alfred.hsdb.tufts.edu (via RT) wrote:
> Complete script demonstrating the problem:
[...]
> Produces this output:
> 
>   Foo->get_foo(): This is _foo in Foo
>   Bar->get_foo(): This is _bar in Bar
>   Bar->get_bar(): This is _bar in Bar
>   Bar->get_baz(): This is _baz in Bar

Are you sure ? it produces for me :

$ perl5.6.0 x
Foo->get_foo(): This is _foo in Foo
No such pseudo-hash field "_foo" at x line 17.
$ perl5.8.0 x
Foo->get_foo(): This is _foo in Foo
No such pseudo-hash field "_foo" at x line 17.
$ bleadperl x 
Foo->get_foo(): This is _foo in Foo
Attempt to access disallowed key '_foo' in a restricted hash at x line 11.

(Anyway, the fact that the line number is different in bleadperl
than in perl <= 5.8.x perhaps indicates a bug in our new implementation
of fields.pm.)

-- 
Unrealistically is not *NIX

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