comp.lang.ada
 help / color / mirror / Atom feed
* Representation clause of a discriminated record
@ 2016-08-03  5:04 David SAUVAGE
  2016-08-03  6:13 ` Jeffrey R. Carter
  0 siblings, 1 reply; 6+ messages in thread
From: David SAUVAGE @ 2016-08-03  5:04 UTC (permalink / raw)


Hi.all,

For a data frame which length can vary, we have described this data frame as a record, and wish to describe it's representation clause.

What would be a valid representation clause for the following discriminated record ? (taken from the Ada wikibook [1])

   type Discriminated_Record (Size : Natural) is 
    record
       A : String (1 .. Size);
    end record;

[1] https://en.wikibooks.org/wiki/Ada_Programming/Types/record#Discriminated_record


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

end of thread, other threads:[~2016-08-04 21:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03  5:04 Representation clause of a discriminated record David SAUVAGE
2016-08-03  6:13 ` Jeffrey R. Carter
2016-08-03 15:22   ` Per Sandberg
2016-08-03 16:43     ` david.sauvage
2016-08-03 16:46     ` David SAUVAGE
2016-08-04 21:23       ` Randy Brukardt

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