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

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

[Octave-bug-tracker] [bug #58254] Variable editor could show more detail


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #58254] Variable editor could show more details for user classes
Date: Mon, 15 Jun 2020 21:03:25 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:77.0) Gecko/20100101 Firefox/77.0

Follow-up Comment #2, bug #58254 (project octave):

Might want to be a little careful with this: because properties can have
getters (and might in fact be Dependent), accessing a property can execute
arbitrary code, and doing so might be expensive or have side effects. I
haven't seen this used in Octave much, but in Matlab, I've definitely seen
code where it is _not_ safe to access some object properties just to see
what's in them.

What do you think about adding an API that allows for user-customizable
display of arbitrary objects? Something like the dispstr API:
https://github.com/apjanke/dispstr. This could be used to provide customized
display of user-defined objects not only in the GUI's Variable Editor, but in
contexts like struct and cell displays at the command line where the objects
are embedded inside compound data structures. (For example:
`quat1=quaternion(1,2,3,4); s = struct('my_quaternion', quat1); disp(s);`)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58254>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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