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-Thread: 103376,1540032852ee6d61 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m58g2000cwm.googlegroups.com!not-for-mail From: "Jerry" Newsgroups: comp.lang.ada Subject: Re: Why does this work? (overloads) Date: 7 Feb 2007 13:13:30 -0800 Organization: http://groups.google.com Message-ID: <1170882810.007117.42730@m58g2000cwm.googlegroups.com> References: <5upyh.336354$FQ1.1334@attbi_s71> NNTP-Posting-Host: 67.40.87.12 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1170882817 31792 127.0.0.1 (7 Feb 2007 21:13:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Feb 2007 21:13:37 +0000 (UTC) In-Reply-To: <5upyh.336354$FQ1.1334@attbi_s71> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/420+ (KHTML, like Gecko, Safari/420) OmniWeb/v607.16,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m58g2000cwm.googlegroups.com; posting-host=67.40.87.12; posting-account=Ax24hA0AAABV39UFqUVhb0kauOuAbI3T Xref: g2news2.google.com comp.lang.ada:9094 Date: 2007-02-07T13:13:30-08:00 List-Id: Jeffrey R. Carter wrote: > Grein, Christoph (Fa. ESG) wrote: > > For a problematic example, consider X := A*B*C; where all four are > > vectors. > > > Is it (A*B) inner product * C resulting in vector or > > (A*B) vector * C resulting in vector. > > The compiler can't tell and will reject the code. > > You can tell the compiler, though: > > Long_Float'(A * B) * C > Vector'(A * B) * C > Matrix'(A * B) * C > Pretty cool. What is this feature called so that I can study it? Jerry