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: Mon, 14 Oct 2002 00:07:01 +0200
Date: 2002-10-13T22:06:52+00:00	[thread overview]
Message-ID: <87d6qedmd6.fsf@deneb.enyo.de> (raw)
In-Reply-To: m3adlidza1.fsf@jupiter.solar.system

Michael Bode <m.g.bode@web.de> writes:

> So if I have a vector 
>
> [ 1 ] 
> [ 2 ]
> [ 3 ]
> [ 4 ] 
>
> which would be element 
>
> [ 0.3   1    ]
> [ pi  sqrt(2)] 
>
> of this vector?

Values are truncated to obtain integer indices, and an entry n in the
matrix is replaced with the nth component of the vector. Your example
gives an error (zero index).

Nice error message, BTW:

??? Capitalized internal function PI; Caps Lock may be on.



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