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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c0437014cb20f71 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: System.Address_to_Access_Conversions Date: 1998/07/26 Message-ID: #1/1 X-Deja-AN: 374924490 Sender: matt@mheaney.ni.net References: <6odddl$k94$1@nnrp1.dejanews.com> <35AB9C59.74E529E0@magic.fr> <6ofn8e$5ff$1@nnrp1.dejanews.com> <6ofqvs$alm@hacgate2.hac.com> <6ogieq$qlo@drn.newsguy.com> NNTP-Posting-Date: Sat, 25 Jul 1998 17:40:51 PDT Newsgroups: comp.lang.ada Date: 1998-07-26T00:00:00+00:00 List-Id: nabbasi@earthlink.net writes: > I read somewhere that the tag position within a record is always defined, > it is the first element always, right? not sure what's its size, I assume > it is an address to someother tag related information somewhere else, so its > size is also known, right? This is all wrong. A compiler writer is free to use any implementation he pleases. Don't use tagged types to exchange data across an external interface (unless you're using the DSA). Use a straight record type, and specify a representation clause to match the characteristics of the hardware. Why do programmers like to use tagged types for everything? Choose the simplest type for the job, not the most complex. To paraphrase Robert's comment in a recent post, just because you buy a super-fancy socket wrench doesn't mean you have to throw away all your other wrenches!