New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning message for duplicated tighter trait #6661
Comments
From @briandfoyI was playing with higher orders of multiplication and defining some multi infix:<↑> ( Int:D $n, Int:D $m --> Int:D ) multi infix:<↑↑> ( Int:D $, 0 --> Int:D ) multi infix:<↑↑> ( Int:D $n, Int:D $m --> Int:D ) put 2 ↑ 3; # 2 * 2 * 2 = 8 This gets the odd error about something that's not part of my code: ===SORRY!=== Error while compiling /Users/brian/Desktop/knuth2.p6.pl The problem turns out to be my duplication of the tighter. That's -- |
From @zoffixznetOn Thu, 11 Jan 2018 20:47:48 -0800, comdog wrote:
I fixed the subst crash[^1][^2] and made it warn[^3][^4][^5] when duplicate When it came to making it warn for dupe use on more than one routine, I hit I drafted[^6] a warning system that tells the user to move traits to the proto Unsure which way to go here. There's a grammar bug[^8], where we don't change precedence of ops, even if O1-P1; { O2-P2; } Would have a language that parses `O` with precedence and associativity of `P2` Currently, there's also bug where trying to apply tighter/looser more than once [1] rakudo/rakudo@029226f |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#132710 (status was 'open')
Searchable as RT132710$
The text was updated successfully, but these errors were encountered: