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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Default rep specs for record types - documented?? Date: 13 Nov 2005 20:12:57 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1131930777 17851 192.74.137.71 (14 Nov 2005 01:12:57 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 14 Nov 2005 01:12:57 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:6365 Date: 2005-11-13T20:12:57-05:00 List-Id: "Steve" writes: > But if you add a representation clause: > > for Color'size use 8; > > All compilers will use the same number of bits to represent an instance of > color? No (unfortunately). It means "use at least 8 bits for objects". A compiler is free to allocate 32. To control the size of objects, you have to use 'Size on the object, or, if it's a component, a record rep clause or a 'Component_Size on an array. - Bob