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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2f62556e56c9683 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: 'with'ing and 'use'ing Date: 2000/02/29 Message-ID: <89h83n$7i01@news.cis.okstate.edu>#1/1 X-Deja-AN: 592079064 References: Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-02-29T00:00:00+00:00 List-Id: On 29 Feb 2000 17:46:54 +0000, Roger Hoyle wrote: >2) One of the packages defines a sub-package called Ops, which contains > the operators (=,/=,>=,<=) etc for some of the types in the main > package. The only way I seem to be able to get access to these operators > is to 'use' the package. Is this right, or am I missing somehting? I'm surprised no one has mentioned it, but you can always call them as Foo."="(a, b) without needing any form of use. I would recommend "use type" instead, though, since you aren't bound from above. = is a lot more elegant than Foo."=", and rarely makes it less readable. (Of course, I probably overuse just plain "use"s, so take that with a grain of salt.) -- David Starner - dstarner98@aasaa.ofe.org Only a nerd would worry about wrong parentheses with square brackets. But that's what mathematicians are. -- Dr. Burchard, math professor at OSU