comp.lang.ada
 help / color / mirror / Atom feed
* Discriminant of a limited type object
@ 2018-02-27 17:54 Dmitry A. Kazakov
  2018-02-27 22:20 ` Randy Brukardt
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitry A. Kazakov @ 2018-02-27 17:54 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-03-02 10:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 17:54 Discriminant of a limited type object Dmitry A. Kazakov
2018-02-27 22:20 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox