From 8306180494705767199
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,bc2d9b2f726f122d
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-06-27 00:48:44 PST
Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!gatech!usenet.ufl.edu!clas.ufl.edu!usenet.cis.ufl.edu!usenet.cis.ufl.edu!bwh
From: bwh@kato.prl.ufl.edu (Brian Hook)
Newsgroups: comp.std.c++
Subject: Re: #if sizeof( int ) == 2
Date: 27 Jun 1994 03:25:14 GMT
Organization: Parallel Research Lab
Lines: 22
Message-ID: <BWH.94Jun26232515@kato.prl.ufl.edu>
References: <BWH.94Jun24202306@kato.prl.ufl.edu> <2uk8lr$hkg@explorer.clark.net>
NNTP-Posting-Host: kato.prl.ufl.edu
In-reply-to: thutt@clark.net's message of 26 Jun 1994 11:59:55 -0400

In article <2uk8lr$hkg@explorer.clark.net> thutt@clark.net (Taylor Hutt) writes:
>   One reason for not allowing it is cross compilation. The preprocessor for 
>   your cross compiler can remain the same, and only the code generator need 
>   change. 

This may be important for some, but when you are using an integrated
environment then I don't think it's an issue.

>   At runtime, you can: assert(sizeof(int) == 2);
>   This will get caught immediately.

But this won't allow me to do conditional compilation, which is what I
want.  An alternative is to use limits.h, which I'll try.

Brian

--
+---------------------------------------------------------------------+
| Brian Hook            | Specializing in real-time 3D graphics       |
| Box 90315             |---------------------------------------------|
| Gainesville, FL 32607 | bwh@prl.ufl.edu                             |
+- "Style distinguishes excellence from accomplishment" - J. Coplien -|


