From: sjw <simon.j.wright@mac.com>
Subject: Re: Problems with Scope of aliased Objects
Date: Thu, 16 Apr 2009 12:12:14 -0700 (PDT)
Date: 2009-04-16T12:12:14-07:00 [thread overview]
Message-ID: <988009b4-26b4-4669-aec9-29855aca2057@r37g2000yqn.googlegroups.com> (raw)
In-Reply-To: 13vooix3fmbze$.1wiip6d166wim.dlg@40tude.net
On Apr 16, 4:47 pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> Fourth solution could be to use a container of unconstrained objects or a
> container of smart pointers if the objects are limited.
ie, instantiate Ada.Containers.Indefinite_Vectors (http://
www.adaic.com/standards/05rm/html/RM-A-18-10.html) .. or lists, maps,
sets, as needed .. with type Foo'Class.
Of course this has to do heap allocation behind the scenes, but you
don't have to worry about it yourself unless performance is really an
issue. If you think it might be an issue, write a performance spec and
do some measurements before you start optimising!
next prev parent reply other threads:[~2009-04-16 19:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 13:43 Problems with Scope of aliased Objects patrick.gunia
2009-04-16 15:29 ` Adam Beneschan
2009-04-16 15:59 ` patrick.gunia
2009-04-16 16:26 ` Adam Beneschan
2009-04-16 16:37 ` patrick.gunia
2009-04-16 20:11 ` Adam Beneschan
2009-04-16 15:47 ` Dmitry A. Kazakov
2009-04-16 19:12 ` sjw [this message]
2009-04-16 15:50 ` Ludovic Brenta
2009-04-16 16:01 ` Adam Beneschan
2009-04-16 16:12 ` patrick.gunia
2009-04-17 13:53 ` Alex R. Mosteo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox