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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79db4ff72bff9422 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-25 08:42:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!nntpserver.com!hub1.nntpserver.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <80d2e34.0110210156.7918cd3d@posting.google.com> <3bd402f9.8783319@news.demon.co.uk> <80d2e34.0110250340.155ae0b7@posting.google.com> <3BD7FE89.53BF8436@earthlink.net> Subject: Re: How to convert record? Message-ID: <%oWB7.96$xS6.155@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Thu, 25 Oct 2001 11:41:47 EDT Organization: http://www.newsranger.com Date: Thu, 25 Oct 2001 15:41:47 GMT Xref: archiver1.google.com comp.lang.ada:15186 Date: 2001-10-25T15:41:47+00:00 List-Id: In article , sk says... > >-- ... Use 'Size on a _variable_ of that type, not the type itself, >-- and divide by System.Storage_Unit (i.e., 8). ... > >Why variable and NOT type ? Because the type will return the number of bits it could theoreticly fit into, not the number it takes up. Thus you could get a result that isn't evenly divisible by your storage unit (usually 8). Personally, I prefer to just adjust for that, rather than worry about it. (Typename'size + System.Storage_Unit - 1) / System.Storage_Unit ..but that's just me. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.