octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strings assignment fix


From: Jaroslav Hajek
Subject: Re: strings assignment fix
Date: Wed, 1 Oct 2008 13:08:49 +0200

On Tue, Sep 30, 2008 at 9:24 AM, Jaroslav Hajek <address@hidden> wrote:
> hello,
>
> using current tip, the following character assignment does not work:
> a = ["aa";"aa"]; b = "aa"; a(1,1:0) = b(1:0);
> and as a consequence, `split' does not work with consecutive separators.
>
> The problem is triggered by octave_char_matrix_str::assign which
> redefines the inherited method, and pre-converts empty strings (1D
> vectors) to 0x0 matrices. Probably some historical hack that ceased to
> work due to null assignments not being recognized in liboctave.
>
> This override seems no longer necessary; hence the attached patch that
> removes the member function, and also adds tests for consecutive and
> leading/trailing separators to split.m.
>

Since my write access to savannah is now working, I've applied the
changeset myself.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]