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

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

[Octave-bug-tracker] [bug #46859] Error in "for" cycle


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #46859] Error in "for" cycle
Date: Sat, 09 Jan 2016 17:29:02 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Follow-up Comment #4, bug #46859 (project octave):

John: Right, finding the "best" solution is not easy.
Matlab compatibility is a consideration, but does not
dictate the right way to do it.

A part of this that may confuse users is:

++
>>zz =T/dt
zz =  1001.0

>>xx = 1001
xx = 1001

but, of course:
format hex
>> zz = T/dt
zz = 408f47ffffffffff

>> xx
xx = 408f480000000000
--

Maybe enhancing the message:
error: x(1000): subscripts must be either integers 1 to (2^31)-1 or logicals

by displaying the failing subscript in hex or at least somehow
indicating explicitly that it does not have an exact integer
value.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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