From: Simon Wright <simon@pushface.org>
Subject: Re: Using local storage pools...
Date: Wed, 23 Feb 2011 21:01:51 +0000
Date: 2011-02-23T21:01:51+00:00 [thread overview]
Message-ID: <m2fwre1n40.fsf@pushface.org> (raw)
In-Reply-To: 7elam6trrv39c3p9iop4fiduqa1jrat4r4@4ax.com
Brian Drummond <brian_drummond@btconnect.com> writes:
> The question(or four) for now is ... should the following really raise
> Storage_Error, i.e. am I doing something silly, and if so, what? Or
> is this a bug in Gnat?
Looks to me like a bug in GNAT. I expect it's not been found before
because the point of this pool type is that you *don't* deallocate, but
leave it up to finalization!
I'm not quite clear how we can use this pool in the binary-trees
benchmark, since the rules say you create a class to represent the tree,
which must include the access types, and the storage pool needs to exist
before the access types are used. Perhaps a generic?
Even then, why not just declare an access type in the appropriate scope
and let the compiler figure out how to deallocate storage on scope exit?
(in other words, I don't see why GNAT includes System.Pool_Local in the
first place).
Oh, perhaps it's so that you can actually create such a generic?
next prev parent reply other threads:[~2011-02-23 21:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 19:01 Using local storage pools Brian Drummond
2011-02-23 20:42 ` Dmitry A. Kazakov
2011-02-23 23:55 ` Brian Drummond
2011-02-24 9:26 ` Dmitry A. Kazakov
2011-02-24 9:51 ` Georg Bauhaus
2011-02-24 10:09 ` Dmitry A. Kazakov
2011-02-24 10:39 ` Brian Drummond
2011-02-23 20:51 ` Ludovic Brenta
2011-02-24 0:27 ` Brian Drummond
2011-02-24 8:03 ` Ludovic Brenta
2011-02-24 17:04 ` Brian Drummond
2011-02-24 12:34 ` Robert A Duff
2011-02-23 21:01 ` Simon Wright [this message]
2011-02-24 0:00 ` Brian Drummond
2011-02-26 3:02 ` Randy Brukardt
2011-02-26 18:41 ` Pascal Obry
2011-02-26 18:59 ` Pascal Obry
2011-02-26 3:07 ` Randy Brukardt
2011-02-26 8:41 ` anon
2011-02-26 10:42 ` Pascal Obry
2011-02-26 11:41 ` Ludovic Brenta
2011-02-27 4:16 ` anon
2011-02-27 8:18 ` Pascal Obry
2011-02-27 23:46 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox