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,c50f57c0c29b391b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: memory management Date: Sat, 28 May 2005 14:03:12 +0100 Organization: Pushface Message-ID: References: <1131064.rs72P29t4t@yahoo.com> <1226363.QsRZW1KHie@linux1.krischik.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1117285392 26351 62.49.19.209 (28 May 2005 13:03:12 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 28 May 2005 13:03:12 +0000 (UTC) Cancel-Lock: sha1:XjQ6aSuaF0nB5StBokmGD9+omIk= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:11191 Date: 2005-05-28T14:03:12+01:00 List-Id: Robert A Duff writes: > By the way, I believe the fat pointers used by GNAT are an option -- > there's some way to tell it to use thin pointers for > access-to-array. GNAT uses fat pointers (by default) only when the > designated type is an array, or when the designated type is unknown > to the compiler. Access-to-record, which is far more common, uses > thin pointers. I don't know of any Ada implementation besides GNAT > that uses fat pointers at all. I think that it uses fat pointers when the type concerned is indefinite. You can make it use thin pointers by specifying the 'Size of the pointer (to be 32) or, I'm pretty sure, by pragma Convention (C); I've sent classwide pointers via Xt client_data values using one of these techniques.