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,45a9122ddf5fcf5 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Rules for Representation of Subtypes Date: 1996/09/30 Message-ID: #1/1 X-Deja-AN: 186301367 references: <1996Sep28.155354.1@eisner> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-09-30T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: >I think his comment was in reaction a previous post, which stated that the >compiler would make all kinds of optimizations based on what it knew was an >illegal program as a result of a call to unchecked_conversion. If the ^^^^^^^ You mean "erroneous". >compiler does something "special" to handle a "bad" program because of >unchecked_conversion, well, the conversion is not really "unchecked," >right? No, no, the compiler doesn't *know* the program is bad. It just does an optimization that will work if the program is good, and might not work if the program is bad. If the compiler *knows* the program is bad, then it should of course give a warning message. But usually such things aren't knowable. - Bob