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,269df2c167555fd6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-24 02:44:30 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!151.189.0.75!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Ada 0x: Re: Representation clause Date: 24 Feb 2001 11:43:39 +0100 Organization: Enyo's not your organization Message-ID: <87wvagweck.fsf@deneb.enyo.de> References: <3a95c52f@post.usenet.com> <3A95E095.75B2A248@worldnet.att.net> <3a9621eb$1@pull.gecm.com> <3A974A99.469AE413@worldnet.att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: supernews.google.com comp.lang.ada:5506 Date: 2001-02-24T11:43:39+01:00 List-Id: James Rogers writes: > If the following is attempted, Program_Error will be raised at run-time. > > function Convert is new Ada.Unchecked_Conversion(Source => Integer, > Target => Colors); > > Enum_Value : Colors := Convert(2); Eh, could you provide a RM reference which supports your claim? I don't think you can rely on a Program_Error exception in such cases. Constraint_Error might be raised as well, or no exception at all.