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
- Redefining operator '>'. #6391
Comments
From andynparker@googlemail.comHi, I have found some unexpected behaviour when attempting to redefine the First attempt, which works, but redefines 'gt' (however, as this is Code is: multi infix:«gt»( Fpa:D $left, Fpa:D $right --> Bool) is and called by: my $xx = Fpa.fpaNew(); gives result: perl6-m ./FPArithTest2.pm6 So far, as expected. Now I amend code to use '>' operator: multi infix:«>»( Fpa:D $left, Fpa:D $right --> Bool) is and called by my $xx = Fpa.fpaNew(); now gives result: perl6-m ./FPArithTest2.pm6 (Fpa) which I cannot understand as the $xx.WHAT and $yy.WHAT show both are OK, so now I try to use 'F>' as this may be a more obvious API: Here is the API: multi infix:«F>»( Fpa:D $left, Fpa:D $right --> Bool) is and the invoking test: Which gives result: perl6-m ./FPArithTest2.pm6 Are these results bugs or I am doing some wrong here? Regards, Andrew N Parker |
Migrated from rt.perl.org#131742 (status was 'new')
Searchable as RT131742$
The text was updated successfully, but these errors were encountered: