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

[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 12:32:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #39041 (project octave):

The problem occurs when the parser is building up the tm_struct object
representing the constant values in the matrix expression.

With this expression


[{}, struct()]


the first element seems to be ignored because it's empty, inferred because
first_elem_is_struct is set to true, which means that the struct value is not
"cellified" on line 313.

With this expression


[{1}, struct()]


the first element is not ignored, first_elem_is_struct is false, and the
struct is cellified, which means that the later cell value extractor works.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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