[comp.lang.perl] Query about unsigned

dan@kfw.COM (Dan Mick) (09/26/90)

Checking:  Did my query of a few days ago about handling unsigned numbers mak
it out?   We'd just upgraded cnews, and I may have lost any replies, or it
may not have made it to the world at all...(it *is* posted locally)...

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (09/26/90)

In article <1990Sep25.210736.11242@kfw.COM> dan@kfw.com (Dan Mick) writes:
: Checking:  Did my query of a few days ago about handling unsigned numbers mak
: it out?   We'd just upgraded cnews, and I may have lost any replies, or it
: may not have made it to the world at all...(it *is* posted locally)...

Yes, it did, but everyone's waiting for me to say something, and I've been
a bit out of it lately.

I would say that you are describing a bug.  I think 0xf0000000, and hex()
and oct() should always produce positive numbers.  It will work that way
after the next update.

For the moment, try saying

	0xf0000000 | 0;

If you use that on your literals, it'll even happen at compile time rather
than run time.

Larry