Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!compass!worley From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.c Subject: Re: n bit architectures and C/C++ Message-ID: Date: 23 May 91 14:19:09 GMT References: <1991May9.192156.19291@nightowl.MN.ORG> <313@orac.UUCP> <6659@gssc.UUCP> <1991May22.211056.19387@ready.eng.ready.com> <1991May22.235538.9548@ichips.intel.com> Sender: root@compass.com Organization: Compass, Inc., Wakefield, MA, U.S.A. Lines: 19 In-reply-to: chrisj@pdx041.intel.com's message of 22 May 91 23:55:38 GMT In article <1991May22.235538.9548@ichips.intel.com> chrisj@pdx041.intel.com (Chris Jones) writes: Wouldn't it be nice to just be able to do this... typedef int24 int /* This program needs to use 24 bit integers */ typedef int35 long /* and 35 bit longs. No matter what it takes. */ If I remember correctly, PL/1 allowed "DECLARE BINARY(24) FOO;". And the much-maligned Cobol has "PICTURE IS 9999". (That's one reason businesses like Cobol -- it's actually portable.) In Pascal you can say something like "x : 0..32767" to give an explicit range, I think. Dale Dale Worley Compass, Inc. worley@compass.com -- Trying to shoot yourself in the foot in: Prolog: You attempt to shoot yourself in the foot, but the bullet, failing to find its mark, backtracks into the gun which then explodes in your face.