From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1c4bf3a1bd5d40f3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-07 13:04:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Booch: missing r/w access through iterators Date: 07 Nov 2002 21:04:09 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <3dc92622$0$308$bed64819@news.gradwell.net> <3dc9ec63$0$300$bed64819@news.gradwell.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1036703042 15774 62.49.19.209 (7 Nov 2002 21:04:02 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 7 Nov 2002 21:04:02 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:30556 Date: 2002-11-07T21:04:09+00:00 List-Id: porton@ex-code.com (Victor Porton) writes: > I noticed Access_Current_Item, but with it to gain such access one > needs to create a new procedure! Too bad. I want direct access like: > > function Current_Item_Access(It: Iterator'Class) return Item_Access; I can see why you might want it, and at the moment I can't remember why it's not there. Perhaps something to do with the problem of creating the access value? (it would force the item in the Container to be aliased, thus constraining it .. I know this actually happens in the BCs but I was very unhappy with the necessary kluge).