Scalar assignment error

John W. Eaton jwe at octave.org
Sat Dec 27 16:03:40 CST 2008


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


More information about the Bug-octave mailing list