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

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

[Octave-bug-tracker] [bug #55810] sizeof() returns 0 for classdef object


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55810] sizeof() returns 0 for classdef objects
Date: Sat, 2 Mar 2019 08:39:29 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

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

Oh. Also, for complex objects, counting the total number of raw bytes in their
object/memory graph could be a complex, expensive operation because you have
to traverse a lot of objects. So maybe the default behavior of sizeof() and
the Bytes column in whos() should be to return/show NaN and '?', respectively,
to avoid causing them to hang in casual usage.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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