From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Proposed change to BC iterator parameters [limitedness]
Date: 11 Dec 2003 10:48:30 -0500
Date: 2003-12-11T10:48:30-05:00 [thread overview]
Message-ID: <wccad5zuzht.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: mailman.72.1071078802.31149.comp.lang.ada@ada-france.org
"amado.alves" <amado.alves@netcabo.pt> writes:
> I think there are (container) libraries that accept limited element
> types. And some libs that dont can easily (?) be changed in that
> direction. But as I indicated I think it is 'unatural' to store values
> of a limited type. For me it does not make sense to put constants in a
> container. So my advice can only be: rethink your program.
Heh? Limited is not the same thing as constant. It makes perfect sense
to store limited objects in containers. *Some* containers require
copying to get the data in and out of the container; limited components
do not make sense in *that* case. But other containers can deal with
limited types just fine.
Why do you think Ada allows arrays of tasks? An array is a container,
and tasks are about as limited as you can get!
- Bob
next prev parent reply other threads:[~2003-12-11 15:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 17:53 Proposed change to BC iterator parameters [limitedness] amado.alves
2003-12-10 18:47 ` Georg Bauhaus
2003-12-11 15:48 ` Robert A Duff [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-11 16:24 amado.alves
2003-12-11 16:53 ` Robert A Duff
2003-12-10 19:33 amado.alves
2003-12-10 19:20 amado.alves
2003-12-11 13:10 ` Marin David Condic
2003-12-11 17:59 ` Jeffrey Carter
2003-12-12 5:58 ` Simon Wright
2003-12-10 13:36 Proposed change to BC iterator parameters amado.alves
2003-12-10 16:47 ` Proposed change to BC iterator parameters [limitedness] 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