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-Thread: 103376,89cb2d7ffc7421c9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ripple effect References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1157752950 12.201.97.213 (Fri, 08 Sep 2006 22:02:30 GMT) NNTP-Posting-Date: Fri, 08 Sep 2006 22:02:30 GMT Date: Fri, 08 Sep 2006 22:02:30 GMT Xref: g2news2.google.com comp.lang.ada:6527 Date: 2006-09-08T22:02:30+00:00 List-Id: Robert A Duff wrote: > > I suppose there are many other ways; I'm not sure which one you're > leaning toward. ;-) Surely not to increase Beaujolais-like effects!? The world would be a different place if we all drank a bottle of Beaujolais a day. I'm leaning toward not have "use". It seems to work pretty well in SPARK. It also tends to make you think up good names. > I'm not sure. The user can declare a module "open". If you say > "use X", you get visibility on X (remember this is not Ada's "use"). If > X is open, you also get (direct) visibility on the contents of X. The > part I'm not sure about is whether to _also_ provide something like > Ada's "use" clause, which allows clients of a non-open module to open > it. It could work for records, too, like Pascal's "with" statement -- > except that I would eliminate the nasty Beaujolais-like effects of > Pascal. Thanks for the explanation. I never found Pascal's "with" to be very useful. > I guess I'm confused as to what the issue is, then. If B doesn't > reference A, then it shouldn't import it -- and the compiler should > give a (suppressable) error. Suppressable because you might want unused > imports temporarily during construction. Also, there are some cases > where unused imports are needed. I would probably outlaw them completely, with a way to create exceptions when they're actually needed. -- Jeff Carter "Pray that there's intelligent life somewhere up in space, 'cause there's bugger all down here on earth." Monty Python's Meaning of Life 61