Re: memory management



Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx> 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.
.