comp.lang.ada
 help / color / mirror / Atom feed
* What is the purpose of Vector.Query_Element?
@ 2015-07-26 22:09 EGarrulo
  2015-07-26 23:02 ` Georg Bauhaus
  2015-07-27 20:12 ` Randy Brukardt
  0 siblings, 2 replies; 3+ messages in thread
From: EGarrulo @ 2015-07-26 22:09 UTC (permalink / raw)


The package that defines Vector provides this procedure:

procedure Query_Element
  (Container : in Vector;
   Index : in Index_Type;
   Process : not null access procedure (Element : in Element_Type));

Why is this procedure provided?  Isn't `Query_Element (Vector, Index, Process'Access)` the same as `Process (Element (Vector, Index))`?

Thank you.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-27 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-26 22:09 What is the purpose of Vector.Query_Element? EGarrulo
2015-07-26 23:02 ` Georg Bauhaus
2015-07-27 20:12 ` Randy Brukardt

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