octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53871] Increment with += gives error in .m fi


From: Richard Kirk
Subject: [Octave-bug-tracker] [bug #53871] Increment with += gives error in .m file
Date: Thu, 10 May 2018 10:23:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #53871 (project octave):

I have had a look at bug #47676. 

I tried re-running my test without setting the 'count' variable...


octave:1> count += 1;
warning: the 'count' function is not yet implemented in Octave

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'count' undefined near line 1 column 1
octave:1> dummy
warning: the 'count' function is not yet implemented in Octave

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'count' undefined near line 2 column 1
error: called from
    dummy at line 2 column 1


They both react to 'count' being undefined in a similar (though not identical)
way.

If I change 'dummy' to...


count = count + 1;


...then I get the same error message as incrementing 'count' at the octave
prompt. This suggests to me that the interpreter is handling the case where
'count' does not exist sensibly, but is doing something that makes no sense to
me when it does exist. That would put it somewhere between the two bugs for
me, but I am way out of my depth here.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53871>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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