[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50043] Error displaying a class without "disp
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #50043] Error displaying a class without "display" method |
Date: |
Thu, 12 Jan 2017 22:10:37 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?50043>
Summary: Error displaying a class without "display" method
Project: GNU Octave
Submitted by: cbm
Submitted on: Thu 12 Jan 2017 10:10:35 PM GMT
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: Any
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 12 Jan 2017 10:10:35 PM GMT Name: me.m Size: 53B By: cbm
<http://savannah.gnu.org/bugs/download.php?file_id=39453>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50043>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50043] Error displaying a class without "display" method,
Colin Macdonald <=