[Top][All Lists]

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

[Octave-bug-tracker] [bug #43096] GUI workspace pane shows dimension 1x1

From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #43096] GUI workspace pane shows dimension 1x1 for my class
Date: Thu, 05 Feb 2015 21:37:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #11, bug #43096 (project octave):

Re: @mtmiller's "total elements" thing.  I looked at the whos implementation
in libinterp/corefcn/variables.cc.  The number of elements thing is counted by
adding up the ".capacity" of each varval.  So I guess "capacity" is wrong for
simple classes.

Also, whos uses "get_dims_str" to render the "3x4" size bit.  This code says:

// FIXME: This is a bit of a kluge.  We'd like to just use val.dims()
// and if val is an object, expect that dims will call size if it is
// overloaded by a user-defined method.  But there are currently some
// unresolved const issues that prevent that solution from working.

Hopefully that is helpful to someone tracking this down...


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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