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,79bbf7e359159d0d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-06 09:44:22 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!uunet!ash.uu.net!world!bobduff From: Robert A Duff Subject: Re: newbie can't get exceptions to work! Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Fri, 6 Apr 2001 16:43:12 GMT References: <25%y6.2364$jz.201607@www.newsranger.com> <3ACDB29E.45B91316@earthlink.net> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6577 Date: 2001-04-06T16:43:12+00:00 List-Id: "Marc A. Criley" writes: > I was very pleased with the addition of "use type" to Ada 95, despite > the opinion of a some that it's an ugly addition that was included > merely to avoid having to write "renames" clauses for operators. To me, > not having to write such renames clauses de-clutters the code, improving > its appearance and readability. Not only do the renames clutter -- they are also quite error prone. Use type is better than nothing, but even that adds one line of clutter. IMHO, you should be able to refer to operators *anywhere*, without having to say anything special. You don't have to say "use" in order to write "X := Y"; why should you have to write "use" in order to write "if X = Y ..."? > SetUserObject(Top, Component_Node); > > is still quite clear without qualifying the whole procedure call: > > Javax.Swing.Tree.DefaultMutableTreeNode.SetUserObject > (Top, Component_Node); One compromise is to have a "use Javax.Swing.Tree;", and then say: DefaultMutableTreeNode.SetUserObject(Top, Component_Node); presuming there's only one package called DefaultMutableTreeNode around the place. - Bob