Skip to content

Commit

Permalink
Fix postfix:<i> so it handles Complex numbers properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Dec 23, 2011
1 parent 8cf84c4 commit d1c33de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CORE.setting
Expand Up @@ -2058,7 +2058,7 @@ sub infix:«~<» ($x, $y) { die "Buffer bitops NYI"; } #OK
sub infix~>» ($x, $y) { die "Buffer bitops NYI"; } #OK
sub prefix:<~^> ($x) { die "Buffer bitops NYI"; } #OK
sub prefix:<||> (\|$args) { die "Slicels NYI" } #OK
sub postfix:<i> is Niecza::absprec<y=> ($item) { Complex.new(0, $item) }
sub postfix:<i> is Niecza::absprec<y=> ($item) { $item ~~ Complex ?? $item * i !! Complex.new(0, $item) }
sub prefix:<sleep> ($x) { die "Asynchronous programming NYI" } #OK
sub infix:<does> ($obj, \$roles) { die "Retyping NYI" } #OK
sub infix:<minmax> is equiv<X> (\|$args) { die "minmax NYI" } #OK
Expand Down

0 comments on commit d1c33de

Please sign in to comment.