comp.lang.ada
 help / color / mirror / Atom feed
* Possible to recover default value of scalar type?
@ 2020-12-13  9:54 reinert
  2020-12-14  0:08 ` Stephen Leake
  0 siblings, 1 reply; 23+ messages in thread
From: reinert @ 2020-12-13  9:54 UTC (permalink / raw)


Assume the following code:

type A_Type is new Natural range 0..9 with Default_Value => 9;
A : A_Type;

Is it later on here possible to get access to the default value (9) ?
If A was a component of a record, one could get it "9" via

  some_record'(others =><>).A

But more directly?

reinert

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

end of thread, other threads:[~2020-12-17  0:53 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13  9:54 Possible to recover default value of scalar type? reinert
2020-12-14  0:08 ` Stephen Leake
2020-12-14  6:09   ` reinert
2020-12-14  9:01     ` AdaMagica
2020-12-14  9:38       ` Dmitry A. Kazakov
2020-12-14 15:56         ` AdaMagica
2020-12-14 16:31           ` Dmitry A. Kazakov
2020-12-14 18:24             ` Simon Wright
2020-12-14 18:53               ` Dmitry A. Kazakov
2020-12-15  6:47                 ` J-P. Rosen
2020-12-15  7:23                   ` Dmitry A. Kazakov
2020-12-15  9:07                     ` J-P. Rosen
2020-12-15 16:53                       ` Simon Wright
2020-12-15 18:14                         ` AdaMagica
2020-12-17  0:53                           ` Randy Brukardt
2020-12-17  0:48                   ` Randy Brukardt
2020-12-15  1:27           ` Randy Brukardt
2020-12-15  9:30             ` Niklas Holsti
2020-12-17  0:45               ` Randy Brukardt
2020-12-15  1:26         ` Randy Brukardt
2020-12-15  7:35           ` Dmitry A. Kazakov
2020-12-17  0:43             ` Randy Brukardt
2020-12-15  1:21       ` Randy Brukardt

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