comp.lang.ada
 help / color / mirror / Atom feed
* Body Stubs
@ 1986-08-19 22:49 hogan
  1986-08-20 12:24 ` John B. Goodenough
  0 siblings, 1 reply; 2+ messages in thread
From: hogan @ 1986-08-19 22:49 UTC (permalink / 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

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

* Re: Body Stubs
  1986-08-19 22:49 Body Stubs hogan
@ 1986-08-20 12:24 ` John B. Goodenough
  0 siblings, 0 replies; 2+ messages in thread
From: John B. Goodenough @ 1986-08-20 12:24 UTC (permalink / raw)


The wording is wrong, but harmless.  The wording says a body stub is only
allowed under condition A or condition B, and condition A (an occurrence
within the specification of a library package) is never true because of
other rules, so a body stube is only allowed under condition B (immediately
within the declarative part of another compilation unit).
-------

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

end of thread, other threads:[~1986-08-20 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-08-19 22:49 Body Stubs hogan
1986-08-20 12:24 ` John B. Goodenough

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