From: Shark8 <onewingedshark@gmail.com>
Subject: Question: What's the difference between pools of pools and Ada 2012's new subpools?
Date: Wed, 13 Feb 2013 16:12:06 -0800 (PST)
Date: 2013-02-13T16:12:06-08:00 [thread overview]
Message-ID: <8fe47d10-1889-43e7-be85-510ece95c1a6@googlegroups.com> (raw)
I recently asked this question on Stackoverflow ( http://stackoverflow.com/questions/14840702/what-are-the-differerences-between-the-new-ada-sub-pool-features-and-pools-of-po ).
I haven't used pools at all, yet; so it's quite likely I'm missing something.
-------
-- Pool of Pools
----------------------------------
-- Minnesota: Land of 10,000 Lakes
type Minnesota(Size: Storage_Count) is new Root_Storage_Pool with private;
type Lake(Size: Storage_Count) is new Root_Storage_Pool with private
with Storage_Pool => Minnasota;
-- ...
type Pooled is [...] with Storage_Pool => Lake;
-------
-- Sub-Pools
----------------------------------
type Pond(Size: Storage_Count) is new Root_Storage_Pool_With_Subpools with private;
subtype My_Handle is Subpool_Handle;
[Note: examples uncompiled, just for illustrative purpose]
next reply other threads:[~2013-02-14 0:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 0:12 Shark8 [this message]
2013-02-14 0:56 ` Question: What's the difference between pools of pools and Ada 2012's new subpools? Randy Brukardt
2013-02-14 2:34 ` Shark8
2013-02-17 1:06 ` Shark8
2013-02-17 9:06 ` Dmitry A. Kazakov
2013-02-17 11:47 ` Simon Wright
2013-02-18 23:24 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox