comp.lang.ada
 help / color / mirror / Atom feed
From: nobody@REPLAY.COM (Anonymous)
Subject: Re: Units Checking is Ada - Solicitation of Comments on Standard Proposal
Date: 1997/08/08
Date: 1997-08-08T00:00:00+00:00	[thread overview]
Message-ID: <199708081305.PAA15730@basement.replay.com> (raw)
In-Reply-To: 33E80CA8.3DEC@erols.com


On Thu, 07 Aug 1997 15:34:11 +0200, Mats Weber
<Mats.Weber@elca-matrix.ch> 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/





      parent reply	other threads:[~1997-08-08  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-06  0:00 Units Checking is Ada - Solicitation of Comments on Standard Proposal William A Whitaker
1997-08-06  0:00 ` W. Wesley Groleau x4923
1997-08-07  0:00 ` Mats Weber
1997-08-08  0:00   ` W. Wesley Groleau x4923
1997-08-08  0:00 ` Anonymous [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox