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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a59300e1cca1082c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-21 02:24:49 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!news.net.uni-c.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Parametrically polymorphic operations (Was: Safe C++) Date: Fri, 21 Sep 2001 11:24:48 +0200 Organization: Centre for Chaos and Turbulence Studies, Niels Bohr Institute Message-ID: <3BAB0760.69C7D8E4@nbi.dk> References: <3BA7A45D.186EE27A@adaworks.com> <20010919072904.O10277-100000@shell5.ba.best.com> <20010919102107.L4954-100000@shell5.ba.best.com> <9ob2u6$2r4l$1@msunews.cl.msu.edu> <3BA9D515.1E6C7A49@nbi.dk> <20010920083828.Y7505-100000@shell5.ba.best.com> NNTP-Posting-Host: alf.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.net.uni-c.dk 1001064288 11286 130.225.212.55 (21 Sep 2001 09:24:48 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Fri, 21 Sep 2001 09:24:48 +0000 (UTC) X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: fo,da,no,sv,is,de,fr,en Xref: archiver1.google.com comp.lang.ada:13225 Date: 2001-09-21T11:24:48+02:00 List-Id: Brian: > > type Matrix (Left, Right : Positive) is private; > > > > function "*" (Left : in Matrix; > > Right : in Matrix (Height => Left.Width)) > > return Matrix (Width => Right.Width, > > Height => Left.Height); > > > > (I hope the intention is clear although the syntax isn't > > defined) > > That you want to multiply an M x N and a N x K matrix and have it type > check at compile time and produce an M X K matrix? Exactly. Jacob -- http://jacob.sparre.dk/Jacob/edb/digitale_nyheder Om redakt�rens opgave p� internetnyhedstjenester.