[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46387] Display class properties
From: |
Ceral Paquet |
Subject: |
[Octave-bug-tracker] [bug #46387] Display class properties |
Date: |
Fri, 06 Nov 2015 16:18:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
URL:
<http://savannah.gnu.org/bugs/?46387>
Summary: Display class properties
Project: GNU Octave
Submitted by: octavebugs
Submitted on: Fri 06 Nov 2015 04:18:35 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
This is an m-file called myclass.m:
classdef myclass
properties
a=1;
b=2;
c=3;
end
end
When you create an instance, then try to see the properties none are
displayed.
m=myclass
m =
<object myclass>
With structures the members are displayed:
s.a=1;s.b=2;s.c=3;s
s =
scalar structure containing the fields:
a = 1
b = 2
c = 3
which is very helpful for debugging etc. Would it be possible to do something
similar with classes?
Matlab does the following:
m=myclass
m =
myclass with properties:
a: 1
b: 2
c: 3
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46387>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #46387] Display class properties,
Ceral Paquet <=