From: dewar@gnat.com
Subject: Re: Constraints?
Date: 1998/12/23
Date: 1998-12-23T00:00:00+00:00 [thread overview]
Message-ID: <75ps2f$krd$1@nnrp1.dejanews.com> (raw)
In-Reply-To: x7v7lvkk7f8.fsf@pogner.demon.co.uk
In article <x7v7lvkk7f8.fsf@pogner.demon.co.uk>,
> 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;
> end foo;
This is definitely invalid. GNAT says:
foo.ads:5:13: subtype must be compatible with parent
discriminant
Robert Dewar
Ada Core Technologies
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
prev parent reply other threads:[~1998-12-23 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-22 0:00 Constraints? Simon Wright
1998-12-22 0:00 ` Constraints? David C. Hoos, Sr.
1998-12-25 0:00 ` Constraints? Simon Wright
1998-12-25 0:00 ` Constraints? dewar
1998-12-30 0:00 ` Constraints? Steve Todd
1998-12-23 0:00 ` dewar [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox