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

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

[Octave-bug-tracker] [bug #43925] isscalar behaves incorrectly for some


From: Julien Bect
Subject: [Octave-bug-tracker] [bug #43925] isscalar behaves incorrectly for some user-defined classes
Date: Fri, 20 May 2016 16:33:03 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #23, bug #43925 (project octave):

Following up on comment #22:

Here is the definition of octave_base_value::rows() in 3.8.2:


octave_idx_type rows (void) const
{
  const dim_vector dv = dims ();
  return dv(0);
}


It is not overridden in octave_class.

So, if I understand correctly, the (undocumented) behaviour of
octave_base_value::rows() for objects has always been to return the size of
the underling struct container, even when size is overloaded to return
something different.

Therefore, I believe that this should not be changed as part of this
regression fix.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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