From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,355f90547d1b4b5 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: PRECOMPILATION Date: 1999/02/10 Message-ID: <36c20b5b.18435714@news.pacbell.net>#1/1 X-Deja-AN: 442991134 References: <918556681.260459@dedale.pandemonium.fr> <36c0b3ad.367441@news.pacbell.net> <36C1E9E8.EE698090@magic.fr> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 918686884 206.170.2.129 (Wed, 10 Feb 1999 14:48:04 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Wed, 10 Feb 1999 14:48:04 PDT Newsgroups: comp.lang.ada Date: 1999-02-10T00:00:00+00:00 List-Id: >Is it legal Ada to write >Sometimes : constant Boolean := False; >if Sometimes then > -- representation clause >else > -- another representation caluse of the same type No, since "if Sometimes then" can't appear in a declaration part. You might be able to if Sometimes then declare ..... do all the 32 bit declarations and usage thereof end; else declare ... do the 64 bit version end; end if; if that doesn't generate other problems. Tucker Taft's solution of putting the variable stuff into different variants of a low level package is what I've done in the past, though.