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,6742ab01b9814abe X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: type casting tagged types in the wrong direction Date: 1996/03/28 Message-ID: #1/1 X-Deja-AN: 144774080 references: <3159B860.28A6@csehp3.mdc.com> <4je8f8$174r@watnews1.watson.ibm.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-03-28T00:00:00+00:00 List-Id: Norman said: "The expression Jim.Z is perfectly legal, but the type conversion C(Jane) is not. This should be flagged as a compile-time error, because it does not satisfy the conditions in either 4.6(22) or 4.6(23)." GNAT certainly agrees: 28. Jim := C (Jane); | >>> downward conversion of tagged objects not allowed :-)