comp.lang.ada
 help / color / mirror / Atom feed
* Question: What's the difference between pools of pools and Ada 2012's new subpools?
@ 2013-02-14  0:12 Shark8
  2013-02-14  0:56 ` Randy Brukardt
  0 siblings, 1 reply; 7+ messages in thread
From: Shark8 @ 2013-02-14  0:12 UTC (permalink / 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]



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-18 23:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14  0:12 Question: What's the difference between pools of pools and Ada 2012's new subpools? Shark8
2013-02-14  0:56 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox