From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Interest in standard smart pointers for Ada 2020
Date: Fri, 1 Sep 2017 02:05:38 -0700 (PDT)
Date: 2017-09-01T02:05:38-07:00 [thread overview]
Message-ID: <40036f17-ec59-41e2-99d9-2fc070884e4f@googlegroups.com> (raw)
In-Reply-To: <73399847-b482-4442-a02f-1bf9c67b467b@googlegroups.com>
Am Donnerstag, 31. August 2017 17:17:12 UTC+2 schrieb Lucretia:
> I would add auto_ptr too, I've implemented one before, although I think Block_Pointer would be a better Ada name for it. Should be limited, initialised with extended return and frees the contents at the end of the block in which it was instantiated.
Sorry, I don't know much about C++.
But in Ada, you can add a size clause to an access type declaration. The whole thing is freed when the type goes out of scope.
Then there is System.Storage_Pools.
Isn't this what you request with an auto_ptr?
next prev parent reply other threads:[~2017-09-01 9:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-31 12:12 Interest in standard smart pointers for Ada 2020 Alejandro R. Mosteo
2017-08-31 12:48 ` Dmitry A. Kazakov
2017-09-03 11:18 ` Alejandro R. Mosteo
2017-09-03 12:45 ` Dmitry A. Kazakov
2017-08-31 15:17 ` Lucretia
2017-08-31 15:51 ` Peter Chapin
2017-08-31 18:57 ` Lucretia
2017-09-01 9:05 ` AdaMagica [this message]
2017-09-02 14:03 ` Jere
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox