indexing crash with current tip

Kai Habel kai.habel at gmx.de
Thu Apr 16 09:58:50 CDT 2009


Jaroslav Hajek schrieb:
> On Thu, Apr 16, 2009 at 9:00 AM, Søren Hauberg <soren at hauberg.org> wrote:
>   
>> tor, 16 04 2009 kl. 08:45 +0200, skrev Jaroslav Hajek:
>>     
>>> Still, can anyone verify what Matlab does when it sees the magic end
>>> within an undefined variable? Is assuming zero dimensions the correct
>>> behavior? Maybe we should gripe?
>>>       
>> It complains about the variable being missing:
>>
>>        >> a(1:end) = 1
>>        ??? Undefined function or variable 'a'.
>>
>>        >> b(1:end) = 1:5
>>        ??? Undefined function or variable 'b'.
>>
>>        >> c(1, 1:end) = 1:3
>>        ??? Undefined function or variable 'c'.
>>
>> This is with Matlab 7.6
>>
>> Søren
>>
>>
>>     
>
> OK, thanks to both you and Kai. So I've pushed another patch:
> http://hg.savannah.gnu.org/hgweb/octave/rev/8ab1e6f63cdc
> our error message will be a bit more descriptive.
>
> regards
>
>   
I can confirm that the initially reported code sequence works as
expected now. Thanks, for fixing it.

Kai


More information about the Bug-octave mailing list