We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#124979 (status was 'open')
Searchable as RT124979$
The text was updated successfully, but these errors were encountered:
This is not limited in operator overloading
``` my $a; $a := { $^a + $^b } # ok ```
``` my &a; &a := { $^a + $^b } # Cannot use bind operator with this left-hand side ```
``` my &a := { $^a + $^b } say a(1, 2) # 3 ```
``` my &infix:<plus> := { $^a + $^b };
say 1 plus 2 plus 3
# 6 ```
Note that it is all well if use `=` instead of `:=`
``` { my &infix:<plus>; BEGIN { &infix:<plus> = { $^a + $^b }; }
is 3 plus 5, 8, 'overloading an operator using "my &infix:<...>" worked'; } # ok 1 - overloading an operator using "my &infix:<...>" worked ```
This test is moved to S06-operator-overloading/infix.t, BTW
Sorry, something went wrong.
The RT System itself - Status changed from 'new' to 'open'
No branches or pull requests
Migrated from rt.perl.org#124979 (status was 'open')
Searchable as RT124979$
The text was updated successfully, but these errors were encountered: