help-octave
[Top][All Lists]
Advanced

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

+= operator strangeness in octave 4.4 build


From: Richard Kirk
Subject: += operator strangeness in octave 4.4 build
Date: Thu, 10 May 2018 11:59:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3

Hi.

I have a 4.4 source build on CenoOS 6.5. This took a bit of getting to work, but it all seems to be up and running with one mysterious exception.

I make a local file "dummy.m" with just 3 lines...
# Increment count

count += 1;

I now try to use it to increment 'count'...

octave:1> count = 0;
octave:2> count += 1;
octave:3> count
count =  1

Okay, that worked. Now let's do that by calling dummy.m...

octave:4> dummy
error: count(61,_): but count has size 1x1
error: called from
    dummy at line 3 column 1

If I replace count += 1; with ++count; in dummy.m then it works.That is my workaround, and I am fine with that for now. However, it used to work in 3.4.3.

Does anyone else see this, or have I mucked up my build somehow? If it is real, I can file a bug.

Thanks
Richard Kirk




reply via email to

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