comp.lang.ada
 help / color / mirror / Atom feed
From: Victor Porton <porton@narod.ru>
Subject: How much storage requires this record?
Date: Tue, 19 Aug 2014 21:01:20 +0300
Date: 2014-08-19T21:01:20+03:00	[thread overview]
Message-ID: <lt03dc$4n2$1@speranza.aioe.org> (raw)

How much storage requires the following record? I am afraid that in some 
compilers each string would require about Natural'Last bytes (way too much).

   type Filename_And_Fragment (Filename_Length, Fragment_Length: Natural) is
      record
         Filename: String(1..Filename_Length);
         Fragment: String(1..Fragment_Length);
      end record;

If the above is wrong (from memory positions), what is the right way to do 
it?

-- 
Victor Porton - http://portonvictor.org


             reply	other threads:[~2014-08-19 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19 18:01 Victor Porton [this message]
2014-08-19 18:14 ` How much storage requires this record? Robert A Duff
replies disabled

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