comp.lang.ada
 help / color / mirror / Atom feed
* Abstract procedures in protected types
@ 1999-08-07  0:00 Aidan Skinner
  1999-08-09  0:00 ` Tucker Taft
  0 siblings, 1 reply; 3+ messages in thread
From: Aidan Skinner @ 1999-08-07  0:00 UTC (permalink / raw)


Is it possible to have an abstract procedure inside a protected
object? I have some of these in Libra.Data_Structures, and they
compile without warning or error with GNAT 3.11p. 

However, ObjectAda under Windows refuses to compile them, citing
LRM:9.4(5). This would appear to be correct, since it states:

protected_operation_declaration ::= subprogram_declaration
            | entry_declaration
            | representation_clause

and not does not mention abstract_subprogram_declaration (LRM:6.1(2)).

I think GNAT is at fault here, but would like to be sure before
submitting a bug report.

- Aidan

-- 
Gimme money, gimme sex, gimme UNIX and root access.
http://www.skinner.demon.co.uk/aidan/




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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-07  0:00 Abstract procedures in protected types Aidan Skinner
1999-08-09  0:00 ` Tucker Taft
1999-08-09  0:00   ` Aidan Skinner

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