From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,efe03f20164a417b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-23 09:23:07 PST Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!fdn.fr!uunet!world!blanket.mitre.org!linus.mitre.org!spectre!eachus From: eachus@spectre.mitre.org (Robert I. Eachus) Newsgroups: comp.lang.ada Subject: Re: An observation of Ada (may offend) Date: 23 Mar 1995 16:38:11 GMT Organization: The Mitre Corp., Bedford, MA. Message-ID: References: <3kbkm1$41o@miranda.gmrc.gecm.com> <3kcflv$164a@watnews1.watson.ibm.com> <3knah2$p4m@watnews1.watson.ibm.com> <3kr20s$gqq@gnat.cs.nyu.edu> NNTP-Posting-Host: spectre.mitre.org In-reply-to: dewar@cs.nyu.edu's message of 23 Mar 1995 00:47:08 -0500 Date: 1995-03-23T16:38:11+00:00 List-Id: In article <3kr20s$gqq@gnat.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes: > Regarding the suggestion: pragma Restrictions(No_Unspecified_Child_Units) > Presumably the right form of this pragma is > Pragma Child_UNits (unit, unit, unit); > with the meaning that only the named units would be allowed as children. > This is a perfectly legitimate pragma, and one that could be implemented. This actually is an improvement to my suggestion, and one I recommend to all Ada implementors. (In fact, if Robert Dewar doesn't get around to adding it to GNAT, I may send it to him.) Of course, and the reason for posting this, is that one needed form of the pragma is "pragma Child_Units(None);" or "pragma Child_Units;" I perfer the second form, what do the rest of you think? I guess there is a third form--to deal with the special case of a child unit named None, you might want to use a reserved keyword here. How about "pragma Child_Units(NOT);"? > But I wonder about this whole concern. After all you can always go and > edit out the "abs" of Norm's abs private, or add to the list of child > units in the above pragma. The point is that the software maintainer can look at the source file and know what child units exist, not that implementers are forbidden to add them. If most people agree with the suggested syntax, I will start using pragma Child_Units without any compiler support. (And probably quickly add the support...) > The language can't do everything here! Right, this is and should be a voluntary annotation in most environments. But I expect that if support is forthcoming, the safety critical people will not only use it, their coding standards will insist on it. -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...