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

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

[Octave-bug-tracker] [bug #41011] scalar indexed assignment should cast


From: Rik
Subject: [Octave-bug-tracker] [bug #41011] scalar indexed assignment should cast input type
Date: Sat, 28 Dec 2013 19:26:50 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Update of bug #41011 (project octave):

                  Status:                    None => Confirmed              
                 Release:                   3.6.4 => dev                    

    _______________________________________________________

Follow-up Comment #1:

Confirmed on the development branch as well.

An example of Octave getting it right is the use of 'single' or 'uint8'.


temp = single (1); temp(1) = 2; class (temp)
ans = single
temp = uint8 (1); temp(1) = 2; class (temp)
ans = uint8


The same behavior should hold for class logical, but fails


temp = logical (1); temp(1) = 0; class (temp)
ans = double



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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