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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e4bb63e08046e1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-30 01:36:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!newsfeed.ecrc.net.MISMATCH!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: In case statment? (was Re: is exception when others => null; smart?) Date: Wed, 30 Oct 2002 09:36:00 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <3DB8204B.2080804@attbi.com> <3DB89B83.2060609@acm.org> <1b585154.0210291023.70af4929@posting.google.com> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1035970560 9589 217.17.192.37 (30 Oct 2002 09:36:00 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 30 Oct 2002 09:36:00 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:30220 Date: 2002-10-30T09:36:00+00:00 List-Id: * Peter Richtmyer wrote: > As the following example illustrates, it really depends upon > the compiler too. A "bad" value is handled differently as > shown: > ----------------------------------------------------------- > with system; > with text_io; > procedure test is > > a : character := character'val(2#11111111#); > for a'size use 8; > b : boolean; > for b'address use a'address; > for b'size use 8; Don't map variable b without pragma Import(Ada, b); This prevents initialising of address space, which--in this case--renders your example unusable.