comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Who said strong typing is a benefit?
Date: Sun, 13 Oct 2002 15:30:22 +0200
Date: 2002-10-13T13:30:15+00:00	[thread overview]
Message-ID: <87lm52eaa9.fsf@deneb.enyo.de> (raw)
In-Reply-To: 3DA96E28.9090104@worldnet.att.net

Jim Rogers <jimmaureenrogers@worldnet.att.net> writes:

> My favorite response to this kind of question is "what will Matlab do
> when you take the square root of a string?"

>> sqrt ('@Q')

ans =

     8     9

>> 

Ugh.  Consistent, but useless.

However, you get an error if you try to use a string as a matrix
index.  But you can use a matrix as an index for a vector (and Matlab
programmers constantly do this!)



  reply	other threads:[~2002-10-13 13:30 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 [this message]
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
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