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!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.net!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: AW: Why does this work? (overloads) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <5upyh.336354$FQ1.1334@attbi_s71> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1170875393 12.201.97.213 (Wed, 07 Feb 2007 19:09:53 GMT) NNTP-Posting-Date: Wed, 07 Feb 2007 19:09:53 GMT Organization: AT&T ASP.att.net Date: Wed, 07 Feb 2007 19:09:53 GMT Xref: g2news2.google.com comp.lang.ada:9088 Date: 2007-02-07T19:09:53+00:00 List-Id: 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 -- Jeff Carter "No one is to stone anyone until I blow this whistle, do you understand? Even--and I want to make this absolutely clear--even if they do say, 'Jehovah.'" Monty Python's Life of Brian 74