On Tue, Oct 21, 2003 at 02:51:32PM +0100, Robin Barker wrote:
> I found the follow bug today, I think it may be related to this one.
>
> % perl5.8.1 -lwe 'sub a {} print main->a'
> main
> % perl5.8.0 -lwe 'sub a {} print main->a'
>
> % perl5.8.1 -lwe 'sub a {return} print main->a'
>
> % perl5.8.0 -lwe 'sub a {return} print main->a'
>
>
> So when the method is empty rather than {return} in perl5.8.1 the object
> is returned.
more accturately, @_ is returned:
$perl5.8.1 -lwe 'sub a {}; print a(3,4,5)'
345
--
"Emacs isn't a bad OS once you get used to it.
It just lacks a decent editor."
Thread Previous
|
Thread Next