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

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

[Octave-bug-tracker] [bug #49794] display vs. disp functions


From: Amro
Subject: [Octave-bug-tracker] [bug #49794] display vs. disp functions
Date: Fri, 9 Dec 2016 21:00:57 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.9) Gecko/20100101 Goanna/3.0 Firefox/45.9 PaleMoon/27.0.2

Follow-up Comment #10, bug #49794 (project octave):

That looks correct to me, given the current implementation of disp for objects
in Octave.

You see MATLAB's default disp/display goes a bit further by printing a list of
public properties for objects and their values (format similar to struct
display), but this would be a separate feature request.

For reference, here is the output in MATLAB for your example:


>> x=blah
x = 
  blah with no properties.
>> display(x)
x = 
  blah with no properties.
>> y.a=x
y = 
  struct with fields:

    a: [1×1 blah]
>> display(y.a)
  blah with no properties.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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