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,bebb281f52290dd4,start X-Google-Attributes: gid103376,public From: Simon Wright Subject: Constraints? Date: 1998/12/22 Message-ID: #1/1 X-Deja-AN: 424755748 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 914308917 nnrp-01:9326 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1998-12-22T00:00:00+00:00 List-Id: (I think I forgot to post this one, it hasn't appeared here yet; if duplicated, sorry) GNAT thinks the code below is OK, Object Ada (special edition) doesn't. If OA is right, as I fear it may be, can anyone offer a way of getting the effect I'm after? (t is some abstract base container, i is an abstract iterator over such a container, n is a concrete container, r is a concrete iterator over an n) package foo is type t is abstract tagged null record; type i (f : access t'class) is abstract tagged limited null record; type n is new t with null record; type r (f : access n) is new i (f) with null record; -- OA says foo.ads: Error: line 5 col 37 LRM:3.7(15), Subtype of -- discriminant must be statically compatible with subtype of the -- corresponding parent discriminant end foo;