comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Subject: Re: sequential io and variant records
Date: Wed, 19 Mar 2003 22:12:06 -0600
Date: 2003-03-19T22:12:06-06:00	[thread overview]
Message-ID: <mailman.2.1048133612.743.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 6a90b886.0303191535.6c92aa0a@posting.google.com


----- Original Message ----- 
From: "Tony Gair" <tony_gair@yahoo.co.uk>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: March 19, 2003 5:35 PM
Subject: sequential io and variant records


> I was surprised to notice that I could compile and link the generic
> package sequential_io with a variant record as a parameter.
> 
> I was wondering if anyone has experimented to see how variant these
> records could be when used in conjunction with such a package.
> 
Sequential IO for variant records writes a number of storage units equal
to the number of storage units in the largest of the variants.

Since the discriminant is written as part of the record, when reading
back, the original variant is reconstructed, and any excess storage
units are ignored.

> Examples eagerly accepted.....
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 
> 




      reply	other threads:[~2003-03-20  4:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-19 23:35 sequential io and variant records Tony Gair
2003-03-20  4:12 ` David C. Hoos, Sr. [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