comp.lang.ada
 help / color / mirror / Atom feed
From: EGarrulo <egarrulo@gmail.com>
Subject: What is the purpose of Vector.Query_Element?
Date: Sun, 26 Jul 2015 15:09:57 -0700 (PDT)
Date: 2015-07-26T15:09:57-07:00	[thread overview]
Message-ID: <ca22434f-8216-4cbd-a4c0-46fea8e6cc98@googlegroups.com> (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.




             reply	other threads:[~2015-07-26 22:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-26 22:09 EGarrulo [this message]
2015-07-26 23:02 ` What is the purpose of Vector.Query_Element? Georg Bauhaus
2015-07-27 20:12 ` Randy Brukardt
replies disabled

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