[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51252] incorrect type casting of colon operat
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #51252] incorrect type casting of colon operator ':' |
Date: |
Mon, 19 Jun 2017 15:12:53 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Update of bug #51252 (project octave):
Category: Octave Function => Interpreter
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Item Group: Incorrect Result => Matlab Compatibility
_______________________________________________________
Follow-up Comment #1:
Yes, in Octave the colon expression returns a "range" object which is only
implemented in terms of double values (or however the "colon" overload method
of a user-defined class is defined).
If Matlab's colon expression preserves the standard type precedence of built
in types, then some redesign work is needed in Octave to make this
compatible.
OTOH it's very easy to write
int32 (1:10)
instead.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51252>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/