bugGNU Octave - Bugs: bug #50043, Error displaying a class without...

 
 

bug #50043: Error displaying a class without "display" method

Submitter:  Colin Macdonald <cbm>
Submitted:  Thu 12 Jan 2017 10:10:35 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Jan 2017 02:15:30 AM UTC, comment #2: 

I can't reproduce!  I must've gotten my binaries mixed up during my hg bisect.  Sorry for the noise, please close.

Colin Macdonald <cbm>
Fri 13 Jan 2017 12:13:31 AM UTC, comment #1: 

It seems to work for me.  This is what I see:


octave:1> x = me (6);
octave:2> x
x =

  <class me>


John W. Eaton <jwe>
Group administrator
Thu 12 Jan 2017 10:10:35 PM UTC, original submission:  

jwe, thanks very much for the recent display/disp fixes.  Here is a remaining minor issue, just so we don't lose track of it.

Suppose I have a class "@me" which has no "@me/display.m"  Then I get:


octave:1> x = me(6);
octave:2> x
error: Invalid call to display.  Correct usage is:

 -- display (OBJ)
octave:2> display(x)
error: display: not defined for class "me"
error: called from
    display at line 57 column 5
octave:2>


This is contrary to "help display":

     User-defined classes should overload the 'display' method so that
     something useful is printed for a class object.  Otherwise, Octave
     will report only that the object is an instance of its class.


Colin Macdonald <cbm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #39453:  me.m added by cbm (53B - application/vnd.wolfram.mathematica.package)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by cbm (Submitted the item)
  • -email is unavailable- added by cbm
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-13 rik5 Open/ClosedOpen Closed
    2017-01-13 jwe StatusNone Works For Me
    2017-01-12 cbm Attached File- Added me.m, #39453
        Carbon-Copy- Added jwe

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code