comp.lang.ada
 help / color / mirror / Atom feed
* Changing default values in derived types
@ 2009-08-30 15:05 vlc
  2009-08-30 16:07 ` Robert A Duff
  0 siblings, 1 reply; 3+ messages in thread
From: vlc @ 2009-08-30 15:05 UTC (permalink / raw)


Hi *,

is there a way to change a default value upon type derivation?

type PT is tagged record
   V : Float := 1.0;
end record;

type CT is new PT with null record;

Is there a way to use another default value for V in CT? I already
tried with controlled types using different Initialize procedures, but
that's quite ugly.

Thanks a lot in advance!



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

end of thread, other threads:[~2009-08-30 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-30 15:05 Changing default values in derived types vlc
2009-08-30 16:07 ` Robert A Duff
2009-08-30 19:41   ` vlc

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