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,e8c8d1c63ffacf0d X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Constraint checking of actuals passed to Attributes Date: 2000/05/12 Message-ID: #1/1 X-Deja-AN: 622701316 Sender: bobduff@world.std.com (Robert A Duff) References: <391250A8.99D1585C@hotmail.com> <39171B69.2F983487@averstar.com> <8f93lm$1es$1@nnrp1.deja.com> <8f9snr$vbr$1@nnrp1.deja.com> <391C543F.83B2A408@averstar.com> <8fhnnj$ltd$1@nnrp1.deja.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-05-12T00:00:00+00:00 List-Id: Ted Dennison writes: > But I still don't understand the logic behind making misuse of an > overlay an "invalid" case rather than an "abonormal" (and thus > erronious) case. Couldn't it cause the same -4 billion value to get > placed into Y? The compiler would have no easy way to detect that the > state has changed to "invalid". How do you enforce that the program > "survives" this? I'm not sure what you mean, here. Could you post a specific example? (Maybe you already did, but I've long since forgotten about it. ;-)) Certainly you can cause abnormal objects, and erroneousness, by certain misuses of address clauses and unchecked conversions of access values, both of which can be used to make overlays. - Bob