From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.etla.org!aioe.org!.POSTED!not-for-mail From: Victor Porton Newsgroups: comp.lang.ada Subject: How much storage requires this record? Date: Tue, 19 Aug 2014 21:01:20 +0300 Organization: Aioe.org NNTP Server Message-ID: NNTP-Posting-Host: AnnUDmZwVERVUXyHDyOl5A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.13.3 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:188564 Date: 2014-08-19T21:01:20+03:00 List-Id: 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