From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Variant record with multiple discriminants?
Date: Sat, 28 Oct 2017 20:48:49 +0200
Date: 2017-10-28T20:48:49+02:00 [thread overview]
Message-ID: <ot2jeg$13oh$1@gioia.aioe.org> (raw)
In-Reply-To: ot2dc5$osg$1@gioia.aioe.org
On 2017-10-28 19:05, Victor Porton wrote:
> Ada does not support variant records whose fields presence depends on
> multiple discriminants, does it?
type T (A : Boolean; B : Boolean) is record
case A is
when True =>
case B is
when True =>
X : Integer;
when False =>
Y : Float;
end case;
when False =>
Z : String (1..20);
end case;
end record;
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
prev parent reply other threads:[~2017-10-28 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-28 17:05 Variant record with multiple discriminants? Victor Porton
2017-10-28 18:47 ` Niklas Holsti
2017-10-28 18:48 ` Dmitry A. Kazakov [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