From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Discriminant of a limited type object
Date: Tue, 27 Feb 2018 18:54:04 +0100
Date: 2018-02-27T18:54:04+01:00 [thread overview]
Message-ID: <p745vr$pma$1@gioia.aioe.org> (raw)
Never needed that, but it seems that there no way to change the
discriminant of a definite object of limited type because there is no
assignment.
Say, we have an array of limited variant records with a defaulted
discriminant. Then there is no way to fill that array ever, because
element's discriminants are frozen.
P.S. Yet another example why Ada needs proper constructors instead of
limited returns...
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next reply other threads:[~2018-02-27 17:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 17:54 Dmitry A. Kazakov [this message]
2018-02-27 22:20 ` Discriminant of a limited type object Randy Brukardt
2018-02-27 22:53 ` Dmitry A. Kazakov
2018-02-28 6:36 ` J-P. Rosen
2018-02-28 8:42 ` Dmitry A. Kazakov
2018-02-28 9:07 ` J-P. Rosen
2018-02-28 17:16 ` Jeffrey R. Carter
2018-02-28 23:10 ` Randy Brukardt
2018-03-01 8:43 ` Dmitry A. Kazakov
2018-03-01 22:00 ` Randy Brukardt
2018-03-02 10:30 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox