From: Wes Groleau <wwgrol@ftw.rsc.raytheon.com>
Subject: Re: Help withing Operators
Date: 1999/11/18
Date: 1999-11-18T00:00:00+00:00 [thread overview]
Message-ID: <38341F4C.F97A705@ftw.rsc.raytheon.com> (raw)
In-Reply-To: 810os4$lko$1@trog.dera.gov.uk
Hovers wrote:
>
> I want to find out how you overide a large number of operators. I know you
> can overwrite them one at a time, but if all the operators are contained
> within a package, can you, in some way with that package's operators?
>
> Using ADA95
>
> Appreciate any help
IF you mean what I think you mean,
with Matrix_Package;
procedure Demo is
Sample_1 : constant Matrix_Package.Matrix :=
Matrix_Package.Random_Square_Matrix (Size => 5);
Sample_2 : constant Matrix_Package.Matrix :=
Matrix_Package.Random_Square_Matrix (Size => 5);
Result : constant Matrix_Package.Matrix :=
Sample_1 * Sample_2 + Sample_2 * Sample_1;
-- illegal; "+" and "*" are not visible
use type Matrix_Package.Matrix;
-- after this, it's legal. I'd give you the RM paragraph numbers,
-- but I'm just too blame lazy.
next prev parent reply other threads:[~1999-11-18 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-18 0:00 Help withing Operators Hovers
1999-11-18 0:00 ` Wes Groleau [this message]
1999-11-18 0:00 ` Matthew Heaney
1999-11-18 0:00 ` Gautier de Montmollin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox