[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: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50756] display of objects in cell array is suppressed |
Date: |
Fri, 7 Apr 2017 18:36:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #2, bug #50756 (project octave):
I changed the polynomial code to overload the disp function rather than the
display function. This is how things should be done. See cset
http://hg.savannah.gnu.org/hgweb/octave/rev/a5280a05b188.
However, that is only a prelude. You are correct that the issue is that the
print routine for cells in ov-cell.cc is calling print directly on an
octave_value object which does not seem to invoke overloaded version of either
display or disp.
I made a quick hack using feval which calls disp() on the octave_value object.
This works, but probably only jwe will know if this is the correct approach.
See the attached hack.
(file #40326)
_______________________________________________________
Additional Item Attachment:
File name: 50756.diff Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50756>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/