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,FREEMAIL_FROM, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,c89924cb7c8c5a42 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-13 08:33:13 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: nma124@hotmail.com (steve_H) Newsgroups: comp.lang.ada Subject: Re: Who said strong typing is a benefit? Date: 13 Oct 2002 08:33:13 -0700 Organization: http://groups.google.com/ Message-ID: <8db3d6c8.0210130733.4fa1d68f@posting.google.com> References: <8db3d6c8.0210121718.25cf55e4@posting.google.com> <%%8q9.21249$rz6.2550@sccrnsc02> NNTP-Posting-Host: 63.203.198.30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034523193 19712 127.0.0.1 (13 Oct 2002 15:33:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Oct 2002 15:33:13 GMT Xref: archiver1.google.com comp.lang.ada:29743 Date: 2002-10-13T15:33:13+00:00 List-Id: tmoran@acm.org wrote in message news:<%%8q9.21249$rz6.2550@sccrnsc02>... > > > performing operations no matter what the actual data > > types turn out to be at run-time" > What does the interpreter do when you add a 3D vector to a 2D vector, > or do "if A > B" where A and B are complex, etc. I don't doubt that > it will "perform operations no matter what" - I'm just curious what > those operations might turn out to be. � threeD=zeros(2,2,2); twoD=zeros(2,2); � threeD threeD(:,:,1) = 0 0 0 0 threeD(:,:,2) = 0 0 0 0 � twoD twoD = 0 0 0 0 � threeD+twoD ??? Error using ==> + Number of array dimensions must match for binary array op. � threeD>twoD ??? Error using ==> > Number of array dimensions must match for binary array op.