From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Using Ada.Containers.Vector and Limited Private types
Date: Mon, 7 Jul 2008 16:15:11 +0200
Date: 2008-07-07T16:15:11+02:00 [thread overview]
Message-ID: <2xxm233rrrdz.1dbgcudoqtmye.dlg@40tude.net> (raw)
In-Reply-To: 3eff8efe-476b-4b78-affe-8c90a445771b@l64g2000hse.googlegroups.com
On Mon, 7 Jul 2008 06:29:16 -0700 (PDT), Gene wrote:
> On Jul 6, 3:18�pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> wrote:
>> I think it is not a good idea to have collections of Directory_Entry_Type.
>> Depending on the implementation, Directory_Entry_Type might use some system
>> resources, locked until Directory_Entry_Type finalization.
>
> Really? I can easily see why the "Search" structure would contain a
> handle or lock, but it's hard to see why a directory entry would do
> so.
For example, in order to get a notification when the target gets changed
(or removed), or else in order to prevent such changes.
At least the choice to make Directory_Entry_Type limited indicates that it
is not just a "value."
> At any rate, the GNAT implementation doesn't.
Well, writing GNAT-specific programs is not a good idea either.
Anyways, if the collection were intended to contain directory item names,
then it would be better and cleaner to design it in just this way.
Ada.Container.Indefinite_Ordered_Maps : String -> File_Kind or a similar
collection would perfectly do the job.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-07-07 14:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 11:53 Using Ada.Containers.Vector and Limited Private types Dale Stanbrough
2008-07-05 15:42 ` george.priv
2008-07-06 18:09 ` Gene
2008-07-06 19:18 ` Dmitry A. Kazakov
2008-07-07 13:29 ` Gene
2008-07-07 14:15 ` Dmitry A. Kazakov [this message]
2008-07-07 18:39 ` Gene
2008-07-10 0:16 ` Dale Stanbrough
2008-07-10 7:31 ` Dmitry A. Kazakov
2008-07-10 22:59 ` Gene
2008-07-11 22:06 ` Jeffrey R. Carter
2008-07-12 2:45 ` Gene
2008-07-12 4:41 ` Jeffrey R. Carter
2008-07-13 15:30 ` Gene
2008-07-13 18:10 ` Jeffrey R. Carter
2008-07-16 21:23 ` Simon Wright
2008-07-12 8:02 ` Dmitry A. Kazakov
2008-07-12 7:53 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox