[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct |
Date: |
Mon, 22 May 2017 13:28:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #11, bug #39041 (project octave):
If we do need to preserve this weird case, then the following cleaner change
also fixes this issue for me:
diff --git a/libinterp/parse-tree/pt-tm-const.cc
b/libinterp/parse-tree/pt-tm-const.cc
--- a/libinterp/parse-tree/pt-tm-const.cc
+++ b/libinterp/parse-tree/pt-tm-const.cc
@@ -82,6 +82,8 @@ namespace octave
first_elem = false;
}
}
+ else if (val.is_cell ())
+ first_elem = false;
append (val);
This still produces an error with
[struct(), {}]
but now the following works
[{}, struct()]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39041>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Rik, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Rik, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct,
Mike Miller <=
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Rik, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Rik, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22
- [Octave-bug-tracker] [bug #39041] concatenation of cell array and scalar struct, Mike Miller, 2017/05/22