comp.lang.ada
 help / color / mirror / Atom feed
* interface type question
@ 2005-08-09 21:59 Georg Bauhaus
  2005-08-10 21:11 ` Randy Brukardt
  0 siblings, 1 reply; 2+ messages in thread
From: Georg Bauhaus @ 2005-08-09 21:59 UTC (permalink / raw)


hi,
clause 3.9.4 about Interface Types in Amendment-D12.html
has an example where a Queue interfaces is parenting a
Synchronized_Queue interface. An explaining paragraph
follows and says, "The Synchronized_Queue interface ...
adds two additional dispatching operations."

But does it add any dispatching operation to Synchronized_Queue?

"type Queue is limited interface;
procedure Append(Q : in out Queue; Element : in Person_Name) is abstract;
...

"type Synchronized_Queue is synchronized interface and Queue; -- see 9.11
procedure Append_Wait(Q : in out Queue; Element : in Person_Name) is abstract;
..."

By habit I had assumed that the first parameter of Append_Wait
should be Synchronized_Queue, not Queue. Is this Correct?


http://www.ada-auth.org/ai-files/grab_bag/Amendment-D12.html
(big)

-- Georg 



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

end of thread, other threads:[~2005-08-10 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09 21:59 interface type question Georg Bauhaus
2005-08-10 21:11 ` Randy Brukardt

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