develooper Front page | perl.perl6.compiler | Postings from June 2018

[perl #133246] Possible bug in Perl 6 OO

Thread Previous | Thread Next
From:
Zoffix Znet via RT
Date:
June 9, 2018 12:34
Subject:
[perl #133246] Possible bug in Perl 6 OO
Message ID:
rt-4.0.24-4506-1528547660-198.133246-15-0@perl.org
On Sat, 09 Jun 2018 05:33:04 -0700, cpan@zoffix.com wrote:
> when
> using implicit return:
> 
> 
> method var1() is rw { return    $!var }
> method var2()       { return-rw $!var }

Correction, that should be:

    method var1() is rw {           $!var }
    method var2()       { return-rw $!var }

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