Mega Search
23.2 Million


Sign Up

Make a donation  
How much storage requires this record?  
News Group: comp.lang.ada

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 19-Aug-2014, at 9:01 PM EST
From: Victor Porton