Scalar assignment error

Jaroslav Hajek highegg at gmail.com
Sat Dec 27 23:08:00 CST 2008


On Sat, Dec 27, 2008 at 11:03 PM, John W. Eaton <jwe at octave.org> wrote:
> On 27-Dec-2008, Jaroslav Hajek wrote:
>
> | 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?
>
> None from me.  I think it is fine to remove these methods.
>
> Thanks,
>
> jwe
>

OK, applied.


-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


More information about the Bug-octave mailing list