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

[perl #117377] [BUG] 'callsame' in postcircumfix:<( )> method inroutine trait does nothing in Rakudo

From:
Brian S. Julin via RT
Date:
May 8, 2018 22:00
Subject:
[perl #117377] [BUG] 'callsame' in postcircumfix:<( )> method inroutine trait does nothing in Rakudo
Message ID:
rt-4.0.24-29149-1525816808-1880.117377-80-0@perl.org

This is a very old ticket and we no longer have postcircumfix:<( )>
for objects.

If you redo the example to use CALL-ME it still does not call the
original class method, however, CALL-ME is defined as a submethod,
not a method, and testing the difference:

$ perl6 -e 'class S { method x { "Sx".say } }; role T { method x { "Sy".say; callsame } }; class V is S does T { }; my $v = V.new; $v.x'
Sy
Sx
$ perl6 -e 'class S { submethod x { "Sx".say } }; role T { method x { "Sy".say; callsame } }; class V is S does T { }; my $v = V.new; $v.x'
Sy

...so while there may still be an "issue" if there's no way to "do that"
in a modern rakudo, perhaps best to write up a new github issue and close this.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About