[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55976] cat, repmat, and reshape don't work fo
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #55976] cat, repmat, and reshape don't work for classdef objects |
Date: |
Tue, 26 Mar 2019 17:27:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36 |
Follow-up Comment #2, bug #55976 (project octave):
One downside of this is that I can't figure out how to create an empty array
of default-implementation struct-organized objects. The normal way to do this
in Matlab seems to be `repmat(MyObject, [0 0])`, but without repmat, I can't
do that.
This means that for default-implementation struct-organized classes, I can't
represent the empty set with the appropriate type, and have to fall back on
using double `[]`, which doesn't have the same operations as the class, so
clients have to include special-case logic for empties.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55976>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/