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

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

[Octave-bug-tracker] [bug #59899] colon operator returns incompatible cl


From: Rik
Subject: [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs
Date: Tue, 19 Jan 2021 12:00:55 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Follow-up Comment #5, bug #59899 (project octave):

So, Octave is actually closer than I thought.  It seems that mostly the input
validation needs to be beefed up.

Case #1 : non-integer inputs in combination with integers


rng = uint8 (0) : 0.4 : 5
rng = uint8 (0) : 5.5


Both of these should produce an error as either the increment or the end point
is not an integer.

Case #2 : out-of-range values in combination with integers


rng = -2 : uint8 (5)
rng = uint8 (5) : -1 : -2


Both of these should produce an error as one of the endpoints is out-of-range
for the specified datatype.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59899>

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




reply via email to

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