comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Using local storage pools...
Date: Thu, 24 Feb 2011 10:26:26 +0100
Date: 2011-02-24T10:26:23+01:00	[thread overview]
Message-ID: <17i1ytb9bptzk$.1b6rl6rjp4p79.dlg@40tude.net> (raw)
In-Reply-To: fd7bm6hbsihk68rnjvh6vt5mjgob1kngh7@4ax.com

On Wed, 23 Feb 2011 23:55:05 +0000, Brian Drummond wrote:

> The other : the shootout rules explicitly disallow implementing your own pool.

Huh:

   type Nodes_Arena is array (1..<huge-number>) of aliased Node;
   Last_Allocated : Integer := 0;

   function Create return not null access Node is
   begin
      Last_Allocated := Last_Allocated + 1;
      return Nodes_Arena (Last_Allocated)'Access;
   end Create;

This is it an implementation of arena. How can this be disallowed?

> (But importing one from available libraries seems to be permitted; so is there a
> suitable candidate?)

You can try this one:

   http://www.dmitry-kazakov.de/ada/components.htm#7.1

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-02-24  9:26 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 [this message]
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
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