comp.lang.ada
 help / color / mirror / Atom feed
From: nma124@hotmail.com (steve_H)
Subject: Re: Who said strong typing is a benefit?
Date: 13 Oct 2002 08:33:13 -0700
Date: 2002-10-13T15:33:13+00:00	[thread overview]
Message-ID: <8db3d6c8.0210130733.4fa1d68f@posting.google.com> (raw)
In-Reply-To: %%8q9.21249$rz6.2550@sccrnsc02

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.



  parent reply	other threads:[~2002-10-13 15:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-13  1:18 Who said strong typing is a benefit? steve_H
2002-10-13  2:53 ` Jim Rogers
2002-10-13 18:27   ` Jeffrey Carter
2002-10-13  3:24 ` Richard Riehle
2002-10-13  7:10 ` tmoran
2002-10-13 13:00   ` Jim Rogers
2002-10-13 13:30     ` Florian Weimer
2002-10-13 17:28       ` Michael Bode
2002-10-13 22:07         ` Florian Weimer
2002-10-13 19:53       ` steve_H
2002-10-13 19:31     ` steve_H
2002-10-13 15:33   ` steve_H [this message]
2002-10-13 17:14 ` Larry Kilgallen
2002-10-14  1:21 ` Dmitry A.Kazakov
2002-10-13 19:42   ` steve_H
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox