[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42152] Overloaded vercat() not called in some
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #42152] Overloaded vercat() not called in some other cases |
Date: |
Mon, 22 May 2017 19:06:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #42152 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #3:
That should have been "@double/horzcat" in my second bullet point.
Actually creating a @double/horzcat.m function with the following body
function y = horzcat(varargin)
y = builtin('horzcat', varargin{:});
end
actually fixes this issue completely. Because the method can be resolved, the
class concatenation can succeed on the non-class double type, and the
resulting class array is finished correctly.
I would characterize this bug slightly differently than the current summary,
instead of the fact that the overloaded vertcat method is not being called,
it's more accurate to say that class-based concatenation of a row of primitive
types fails because the builtin cat methods are not looked up properly in a
class context.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42152>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/