comp.lang.ada
 help / color / mirror / Atom feed
From: aidan@skinner.demon.co.uk (Aidan Skinner)
Subject: Abstract procedures in protected types
Date: 1999/08/07
Date: 1999-08-07T00:00:00+00:00	[thread overview]
Message-ID: <slrn7qobl3.6ii.aidan@skinner.demon.co.uk> (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/




             reply	other threads:[~1999-08-07  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-07  0:00 Aidan Skinner [this message]
1999-08-09  0:00 ` Abstract procedures in protected types Tucker Taft
1999-08-09  0:00   ` Aidan Skinner
replies disabled

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