After removing a bunch of methods, I'd like to add some;-)
The Perl6 operators +& +| +^ and ~& ~| ~^ need support. While we have the former, we are lacking the stringwise operations.


Now:                     Proposed:          New:
bitwise_or_int(P,P,I)    bitwise_or_int_i   bitwise_or_str_s(P,P,S)
bitwise_or(P,P,P)        bitwise_or_int_p   bitwise_or_str_p(P,P,P)

Similar for "and", "xor", and the 2 argument forms.

The current opcode "bor" for integer could remain, the stringwise ops get and "s" suffix: "bors" "bands" bxors". The bitwise_xx_str vtables call functions in string.c, that do the real work.

Comments welcome,
leo

PS are there & | ^ Perl6 operators too, that do either int or stringwise operations depending on the left operand?



Reply via email to