Re: memory management
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 May 2005 16:31:48 +0200
Robert A Duff wrote:
> alex goldman <hello@xxxxxxxx> writes:
>
>> As I understood from reading the Ada tutorial for C/C++ programmers,
>> "access" is essentially like C++ smart pointer,
>
> No, Ada access types are just pointers -- no "smarts".
> To make something like smart pointers, you can use
> controlled types.
No again - any paricular Ada implementation is free to implement access
types as they see fit. With GNAT an access may consist of an pointer to the
data and a pointer to a dope vector:
http://en.wikipedia.org/wiki/Dope_vector
Remeber that an Ada compiler may also implement garbage collection.
Martin
--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.
- Follow-Ups:
- Re: memory management
- From: Robert A Duff
- Re: memory management
- References:
- memory management
- From: alex goldman
- Re: memory management
- From: Robert A Duff
- memory management
- Prev by Date: Memory profiling
- Next by Date: Re: memory management
- Previous by thread: Re: memory management
- Next by thread: Re: memory management
- Index(es):
Relevant Pages
|