comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: "out" or "access"
Date: 1998/10/30
Date: 1998-10-30T00:00:00+00:00	[thread overview]
Message-ID: <71cjab$ka8$1@nnrp1.dejanews.com> (raw)
In-Reply-To: wcc3e87hrl8.fsf@world.std.com

In article <wcc3e87hrl8.fsf@world.std.com>,
  Robert A Duff <bobduff@world.std.com> wrote:

> But how about this workaround: declare New_Iterator to take an 'in'
> parameter of type Root_Queue.  (Presuming you really do want an iterator
> that can't modify the thing it's iterating over.)  So it's dispatching,
> which you want.  Inside the various overridings of it, you will normally
> have to do 'Unchecked_Access to produce a pointer to the thing, which

I must be missing something here. Isn't it possible that taking an
'Unchecked_Access of an in parameter will just give you a pointer to a copy of
the object on the stack, which will disappear when the procedure ends? Or are
you saying to do a ".all'Unchecked_Access" on the in parameter?

--
T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1998-10-30  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-21  0:00 "out" or "access" =:-) Vincent
1998-10-21  0:00 ` Tucker Taft
1998-10-22  0:00   ` Pascal Obry
1998-10-29  0:00     ` Robert A Duff
1998-10-29  0:00       ` Matthew Heaney
1998-10-29  0:00         ` Robert A Duff
1998-10-30  0:00           ` dennison [this message]
1998-10-30  0:00             ` Matthew Heaney
1998-10-30  0:00               ` Robert A Duff
1998-10-31  0:00                 ` dewar
1998-10-31  0:00                   ` Matthew Heaney
1998-10-31  0:00                 ` Matthew Heaney
1998-11-01  0:00                   ` Robert A Duff
1998-11-01  0:00                     ` Matthew Heaney
1998-11-01  0:00                       ` Robert A Duff
1998-11-02  0:00                         ` Matthew Heaney
1998-11-03  0:00                           ` Simon Wright
1998-11-16  0:00                             ` Matthew Heaney
1998-10-21  0:00 ` dennison
1998-10-21  0:00 ` Jeff Carter
1998-10-21  0:00   ` Pat Rogers
1998-10-21  0:00     ` Martin C. Carlisle
1998-10-22  0:00       ` Pat Rogers
1998-10-22  0:00     ` Robert A Duff
replies disabled

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