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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad3b8638a6e09884 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Incorrect error? Date: Mon, 18 Jul 2011 15:24:54 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <4e23f350$0$2573$703f8584@news.kpn.nl> <04f4f840-4ea5-407b-8eb7-1f4016ab4e13@d1g2000yqm.googlegroups.com> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII X-Trace: tigger.scc.uni-weimar.de 1310994268 4248 141.54.178.228 (18 Jul 2011 13:04:28 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Mon, 18 Jul 2011 13:04:28 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Content-ID: Xref: g2news1.google.com comp.lang.ada:20221 Date: 2011-07-18T15:24:54+02:00 List-Id: On Mon, 18 Jul 2011, stefan-lucks@see-the.signature wrote: > On Mon, 18 Jul 2011, AdaMagica wrote: > > > So if you have three vectors, what should A * B * C mean? Even with > > parentheses, it's awkward to read. > > I would always prefer to write such an expression with parenthesis. So > look at the expression (A * B) * C, where A, B, and C are vectors. > -> A * B is either a matrix M or a number N. > -> M * C would be a vector. > -> N * C would also be a vector. > ===> The result type is a vector. > > But wait a minute! There are two different results (either "M * C2 or "N * > C"), and we don't know which is the correct one. So the compiler should > reject this. Sorry, I meant (either "M * C or "N * C")! -- ------ Stefan Lucks -- Bauhaus-University Weimar -- Germany ------ Stefan dot Lucks at uni minus weimar dot de ------ I love the taste of Cryptanalysis in the morning! ------