On 2020-01-17 20:49, Kevin Pye wrote:
n Raku, all operators are just functions with a funny syntax, but if you want to use it as a function, you need the full name.

infix:<+^>($x, $y) would probably work just as well.

$z = +^($x, $y)

no work so well.

$ p6 'my uint8 $x=0b0101_0111; my uint8 $y = 0b0000_1111; my uint8 $z = +^($x, $y); say "0", $x.base(2); say "0000", $y.base(2); say $z.base(2);'
01010111
00001111
11111101



And where is the '$' before the z?

ya, I just found the missing $

:'(

Reply via email to