On Thu, 2004-04-29 at 13:04, Dan Sugalski wrote:I think left and right shift of strings should work the same way that shifts on ints works--that is, it doesn't grow, bits just fall off the end. You can decide whether to sign-extend or 0-extend, either one's OK.
Have we[1] finished working out what a string is yet?
[1] And by "we", I mean "you"[2]. [2] And by "you", I mean "you" plural.
Yep. Or at least we've worked out what Parrot's going to do--whether everyone (or anyone) will be happy with it is a different matter entirely.
Bitstring operations ought only be valid on binary data, though, unless someone can give me a good reason why we ought to allow bitshifting on Unicode. (And then give me a reasoned argument *how*, too)
--
Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk