Article View: net.lang.ada
Article #919Body Stubs
From: hogan
Date: Tue, 19 Aug 1986 22:49
Date: Tue, 19 Aug 1986 22:49
16 lines
1316 bytes
1316 bytes
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
Technical Details
Message-ID:
<8608192251.AA26952@aerospace.arpa>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!AEROSPACE.ARPA!hoganShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!AEROSPACE.ARPA!hogan From: hogan@AEROSPACE.ARPA Newsgroups: net.lang.ada Subject: Body Stubs Message-ID: <8608192251.AA26952@aerospace.arpa> Date: Tue, 19-Aug-86 18:49:58 EDT Article-I.D.: aerospac.8608192251.AA26952 Posted: Tue Aug 19 18:49:58 1986 Date-Received: Wed, 20-Aug-86 23:19:28 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 16