comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@amsjv.com>
Subject: Re: Booch: missing r/w access through iterators
Date: 06 Nov 2002 16:42:30 +0000
Date: 2002-11-06T16:42:30+00:00	[thread overview]
Message-ID: <x7v8z06tzt5.fsf@galadriel.frlngtn.gecm.com> (raw)
In-Reply-To: 3dc92622$0$308$bed64819@news.gradwell.net

porton@ex-code.com (Victor Porton) writes:

> In Booch generic package BC.Containers there are
> function Current_Item which gives read-only access
> to the current item. Why a function giving direct
> read-write access to the current item (by returning
> access to it) is missing?!

Actually Current_Item gives you a copy.

I think you are looking for

   generic
      with procedure Apply (Elem : in out Item);
   procedure Access_Current_Item (In_The_Iterator : Iterator'Class);
   --  Call Apply for the Iterator's current Item.

(on the line after Current_Item).



  reply	other threads:[~2002-11-06 16:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06 14:18 Booch: missing r/w access through iterators Victor Porton
2002-11-06 16:42 ` Simon Wright [this message]
2002-11-07  4:21 ` Victor Porton
2002-11-07 21:04   ` Simon Wright
2002-11-08 20:49     ` Matthew Heaney
2002-11-08 20:37   ` Matthew Heaney
2002-11-08  5:21 ` Victor Porton
2002-11-08 20:53   ` Matthew Heaney
2002-11-08 20:33 ` Matthew Heaney
replies disabled

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