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,e3785b223d2fe9b7 X-Google-Attributes: gid103376,public From: Wes Groleau Subject: Re: Help withing Operators Date: 1999/11/18 Message-ID: <38341F4C.F97A705@ftw.rsc.raytheon.com>#1/1 X-Deja-AN: 550156948 Content-Transfer-Encoding: 7bit References: <810os4$lko$1@trog.dera.gov.uk> X-Accept-Language: en,es,fr,pt Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@icg.raytheon.com X-Trace: bos-service2.ext.raytheon.com 942940000 151.168.144.162 (Thu, 18 Nov 1999 09:46:40 CST) Organization: Raytheon Company MIME-Version: 1.0 NNTP-Posting-Date: Thu, 18 Nov 1999 09:46:40 CST Newsgroups: comp.lang.ada Date: 1999-11-18T00:00:00+00:00 List-Id: 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.