|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #53007] Variable editor: logical values are transformed to doubles upon editing |
| Date: | Mon, 29 Jan 2018 17:51:57 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #2, bug #53007 (project octave):
Hah, you're right. I think this is a failing back in the interpreter. Sample
code:
>> x = uint8 (4)
x = 4
>> x(1) = 1000
x = 255
>> class (x)
ans = uint8
>> y = true
y = 1
>> y(1) = 0
y = 0
>> class (y)
ans = double
For someone who has acess to Matlab, try
y = true
y(1) = 0
class (y)
Is the final reported class "double" or "logical"?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53007>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |