[M3devel] FW: unsigned integers?

Jay jayk123 at hotmail.com
Tue Jun 3 11:36:25 CEST 2008


truncated yet again, albeit slightly..


From: jayk123 at hotmail.comTo: rodney.bates at wichita.edu; m3devel at elegosoft.comSubject: RE: [M3devel] unsigned integers?Date: Tue, 3 Jun 2008 03:10:40 +0000


Very interesting.The suggestion of one of the links is that the extra range of a full unsigned type isn't particularly needed, once you have 31 bits instead of only 15.Now, in C, it is common to do a manual range check, and having unsigned cuts that check in half, makes it easier to get correct -- no need to remember to check for >=0, but also easy to do that..However Modula-3 does that checking for you, taking away more of the point of the full unsigned type.So I guess there's just no need.It might be nice to make Word.T != INTEGER though. ?Gotta run. - Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080603/556103ec/attachment-0002.html>


More information about the M3devel mailing list