New string assignment behavior with 3.0.3
Jaroslav Hajek
highegg at gmail.com
Thu Dec 18 09:37:45 CST 2008
On Thu, Dec 18, 2008 at 5:45 AM, Orion Poplawski <orion at cora.nwra.com> wrote:
> With 3.0.1:
>
> octave:3> t = ""
> t =
> octave:4> t(1,:) = ""
> t =
>
> With 3.0.3:
>
> octave:1> t=""
> t =
> octave:2> t(1,:) = ""
> error: A(idx) = []: index out of range
> error: assignment failed, or no method for `string = string'
> error: evaluating assignment expression near line 2, column 8
>
> Intentional? Bug?
>
Intentional. Assigning [], '' or "" directly means deleting, not
inserting, so out-of-range indices are not allowed.
regards
--
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