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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b023521659e212ce X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: Units Checking is Ada - Solicitation of Comments on Standard Proposal Date: 1997/08/08 Message-ID: <199708081305.PAA15730@basement.replay.com>#1/1 X-Deja-AN: 262852520 References: <33E9CDA9.645A51BB@elca-matrix.ch> <33E80CA8.3DEC@erols.com> Organization: Replay and Company UnLimited Mail-To-News-Contact: postmaster@nym.alias.net X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Newsgroups: comp.lang.ada Date: 1997-08-08T00:00:00+00:00 List-Id: On Thu, 07 Aug 1997 15:34:11 +0200, Mats Weber wrote: > I had a quick look at it. I don't like the fact that operations are in the > separate (sub)package SI.Ops, because they are not part of the primitive > profile of the type Unit. > > So , if you derive the type, the operations are not derived, and you cannot do > use type SI.Unit; > to get direct access to the operators. > > FWIW, this is an Ada-83 trick used by a small but significant group: The author doesn't want to "use" SI, but wants direct visibility to its operators; therefore, he puts the operators in a subpackage, and uses it: "use SI.Ops;". In Ada, one can achieve the same effect without the subpackage with "use type". Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "You couldn't catch clap in a brothel, silly English K...niggets." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/