comp.lang.ada
 help / color / mirror / Atom feed
* Generic abstract procedures
@ 1999-10-14  0:00 Lutz Donnerhacke
  1999-10-14  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 6+ messages in thread
From: Lutz Donnerhacke @ 1999-10-14  0:00 UTC (permalink / raw)


Of course, RM 6-1(20) says:
    A subprogram_declaration or a generic_subprogram_declaration requires a
    completion: a body, a renaming_declaration (see 8.5), or a pragma Import
    (see B.1). A completion is not allowed for an
    abstract_subprogram_declaration.

Even RM 12-6(16) clarifies in Note (18):
    The actual subprogram cannot be abstract (see 3.9.3).

And so RM 3-9(11)
    A generic actual subprogram shall not be an abstract subprogram. ...

Does anybody knows a solution other than derivating the actual collection
from an abstract tagged type? Obviously I failed with a dumb generic attempt.
\f
But I love it.




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

end of thread, other threads:[~1999-10-15  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-14  0:00 Generic abstract procedures Lutz Donnerhacke
1999-10-14  0:00 ` Matthew Heaney
1999-10-14  0:00   ` Lutz Donnerhacke
1999-10-14  0:00     ` Matthew Heaney
1999-10-14  0:00       ` Matthew Heaney
1999-10-15  0:00       ` Lutz Donnerhacke

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