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: Mon, 18 Jan 2021 12:57:12 -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 #3, bug #59899 (project octave):

@jwe: oops, forgot to check this on dev.  You're right that the original
example works.  Would still be useful to understand how the other examples I
mentioned work on Matlab.

In Octave I see that


x = uint8(1):int32(5);
error: invalid types found in range expression


It might be nicer to indicate "incompatible types" rather than "invalid types"
since that is the true problem.

    _______________________________________________________

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]