[perl #124442] no warning when a subroutine named "byte" is created

2016-05-06 Thread Sam S. via RT
Looks like a bug to me as well. Simpler example: ➜ class a {}; { sub a {42}; say a } (a) ➜ class a {}; { sub a {42}; say a() } Method 'shortname' not found for invocant of class 'Perl6::Metamodel::CoercionHOW' in block at -e line 1(a)

[perl #124442] no warning when a subroutine named "byte" is created

2015-09-02 Thread Brian S. Julin via RT
This is actually a more generic problem affecting user-created classes as well: $ perl6 -e 'class b { }; { my &b; say b.WHAT, b().WHAT }' (b)(b(Any)) ...it is just that the native types have no idea what to do when invoked and are noisier. The above results could be equally surprizing for someo

[perl #124442] no warning when a subroutine named "byte" is created

2015-09-02 Thread bri
This is actually a more generic problem affecting user-created classes as well: $ perl6 -e 'class b { }; { my &b; say b.WHAT, b().WHAT }' (b)(b(Any)) ...it is just that the native types have no idea what to do when invoked and are noisier. The above results could be equally surprizing for someo

[perl #124442] no warning when a subroutine named "byte" is created

2015-05-02 Thread via RT
# New Ticket Created by Ricardo SIGNES # Please include the string: [perl #124442] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124442 > This confused the heck out of me: ~/code/hub/rakudo$ ./perl6 -e 'sub byte ($i) { $i