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

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

[Octave-bug-tracker] [bug #50756] display of objects in cell array is su


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #50756] display of objects in cell array is suppressed
Date: Fri, 7 Apr 2017 17:35:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?50756>

                 Summary: display of objects in cell array is suppressed
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Fri 07 Apr 2017 02:35:54 PM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

With the changes that have been made to the way the display method is used,
the following no longer shows the value of objects contained in a cell array.

In Octave 4.2.1, with the polynomial class provided in examples/code:


>> x{1} = polynomial ([1, 2, 3, 4])
x = 
{
 = 1 + 2 * X + 3 * X ^ 2 + 4 * X ^ 3
}
>> x{1}
ans = 1 + 2 * X + 3 * X ^ 2 + 4 * X ^ 3


And on the default branch


>> x{1} = polynomial ([1, 2, 3, 4])
x = 
{
  [1,1] =

    <class polynomial>
}
>> x{1}
ans = 1 + 2 * X + 3 * X ^ 2 + 4 * X ^ 3


If we do want the old behavior back, then I guess we need to arrange for
octave_cell::print to make sure that the overloaded display method is called
for each element that it contains, instead of going straight to its built-in
print method.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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