On Tue, Feb 27, 2007 at 06:31:31PM +0000, Smylers wrote: > Geoffrey Broadwell writes: > > > How are the bitwise shifts defined on low level types? In particular, > > for right shift, does high bit extension or zero fill occur? Does the > > answer depend on whether the low level type is signed or not? > > > > On the flip side, it seems more useful if we have both operators > > available ... > > Deal with anything as low-level as bits seems to be very rare in Perl 5 > programming.
It's one of the things that Perl 5 is bad at. Not beacuse it can't do it, but because it's terribly terribly slow (compared with C) You don't want to write a linker in Perl. > For this esoteric sort of stuff can't we have named operators (short > names if you like, perhaps taken from assembly language), in a module > that can be loaded by those who need them? I think that we can learn from PHP here. :-) Nicholas Clark