comp.lang.ada
 help / color / mirror / Atom feed
* How to initialize a tagged null record?
@ 2001-09-10 18:05 Franz Kruse
  2001-09-10 22:12 ` Jeffrey Carter
  0 siblings, 1 reply; 2+ messages in thread
From: Franz Kruse @ 2001-09-10 18:05 UTC (permalink / raw)


Can somebody tell me how to initialize a tagged null record?

   type Type_Name is tagged null record;

   Object : Type_Name'Class := ?????;

Thanks for your help

Franz





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

* Re: How to initialize a tagged null record?
  2001-09-10 18:05 How to initialize a tagged null record? Franz Kruse
@ 2001-09-10 22:12 ` Jeffrey Carter
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey Carter @ 2001-09-10 22:12 UTC (permalink / raw)


Franz Kruse wrote:
> 
> Can somebody tell me how to initialize a tagged null record?
> 
>    type Type_Name is tagged null record;
> 
>    Object : Type_Name'Class := ?????;

Object : Type_Name'Class := Type_Name'(null record);

See ARM 4.3.1.

-- 
Jeffrey Carter



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

end of thread, other threads:[~2001-09-10 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-10 18:05 How to initialize a tagged null record? Franz Kruse
2001-09-10 22:12 ` Jeffrey Carter

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