Scalar assignment error
Jaroslav Hajek
highegg at gmail.com
Sat Dec 27 10:10:13 CST 2008
On Fri, Dec 26, 2008 at 9:32 PM, Jeremy Kepner <kepner at ll.mit.edu> wrote:
> Hi John,
> First let me say that the Octave object
> testing is going very well. Only a few minor
> bugs here and there.
>
> Great work!
>
> The assignment error is different than I originally thought.
> Nothing to do with objects. See attached script.
>
> x(':',:) = 1
>
> gives and error if x is 1x1.
>
> Regards. -Jeremy
>
>
>
I never much understood the purpose of the valid_as_scalar_index and
valid_as_zero_index methods. They seem to optimize indexing of
scalars, but IMHO there is little need to that.
The attached patch removes them entirely, and the reported problem
apparently disappears.
Any objections?
--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vsi.diff
Type: text/x-diff
Size: 22319 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20081227/1c0372cd/attachment-0001.bin
More information about the Bug-octave
mailing list