From bug-request at octave dot org Mon Nov 8 12:08:11 2004 Subject: expecting integer index, found From: "John W. Eaton" To: Miroslaw Kwasniak Cc: bug at octave dot org Date: Mon, 8 Nov 2004 12:00:54 -0500 On 7-Nov-2004, Miroslaw Kwasniak wrote: | To: bug at octave dot org | Cc: mirek | Subject: expecting integer index, found | | Bug report for Octave 2.1.61 configured for i686-pc-linux-gnu | | Description: | ----------- | | Hi, | | I found similiar bug in like described about ov-{scalar,range}.h | | "Re: Evaulation of non-integer subscripts(Correction)" | http://www.octave.org/octave-lists/archive/bug-octave.2004/msg00742.html | | | Why octave has redundant code? Because it is a large program written by several people over the course of the last dozen years or so? When writing or modifying a large program, it's hard to always know that some other code already does the same (or similar) thing. In any case, I don't think Octave has that much duplicated code. If it bothers you, then please work to submit patches that eliminate the duplications. | Repeat-By: | --------- | | a=1:5; | a(2.5) | error: expecting integer index, found 2.500000 I don't think this is a bug, as non-integer indices should not be allowed. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------