comp.lang.ada
 help / color / mirror / Atom feed
From: stt@ada-uts
Subject: Re: instantiating io for variant record
Date: 19 Apr 89 12:40:00 GMT	[thread overview]
Message-ID: <57900092@ada-uts> (raw)
In-Reply-To: 1923@gmu90x.UUCP


Generally, you must provide a default for the discriminant
for records used for direct or sequential I/O.
This allows the body of the generic to declare an object
large enough to hold any instance, to act as a buffer, etc.
Hence make your record:
   type rec(field : fieldtype := fieldtype'first) is record ...

This approach works with most Ada compilers.

Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

      parent reply	other threads:[~1989-04-19 12:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-04-17 18:32 instantiating io for variant records Maureen Cragg
1989-04-18  1:46 ` Maureen Cragg
1989-04-19 12:40 ` stt [this message]
replies disabled

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