in reply to A little overloading conundrum
There's nothing I can think of and the documentation suggests it's not something that is easy to do.
One could reverse the order so $A_obj is checked first: my $n2 = -$A_obj + $B_obj;. That's obviously not practical, though, and would also need neg overloading on $A_obj (and addition if not already done).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A little overloading conundrum
by syphilis (Archbishop) on Mar 07, 2026 at 14:26 UTC | |
by ysth (Canon) on Mar 08, 2026 at 03:22 UTC | |
by syphilis (Archbishop) on Mar 08, 2026 at 04:38 UTC |