comp.lang.ada
 help / color / mirror / Atom feed
From: hogan@AEROSPACE.ARPA
Subject: Body Stubs
Date: Tue, 19-Aug-86 18:49:58 EDT	[thread overview]
Date: Tue Aug 19 18:49:58 1986
Message-ID: <8608192251.AA26952@aerospace.arpa> (raw)

I found an interesting paragraph in the ARM that seems wrong:

10.2 (3) A body stub is only allowed as the body of a progrm unit (a subprogram, a package, a task unit, or a generic unit) if the body stub occurs immediately
within either the specification of a library package or the declarative part
of another compilation unit.

Seems to me the intent of this paragraph is that body stubs cannot be used
as the bodies of library units; they must be declared within other units.  But
the words say "if the body stub occurs immediately within...the specification
of a library package".  However, the syntax of package specifications, 7.1(2), 
says package specification may only contain basic_declarative_items, which 
cannot be bodies.

Is the wording of the ARM wrong or am I reading it wrong ?

mike hogan

             reply	other threads:[~1986-08-19 22:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-08-19 22:49 hogan [this message]
1986-08-20 12:24 ` Body Stubs John B. Goodenough
replies disabled

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