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

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

[Octave-bug-tracker] [bug #34967] Bad behavior of structures with an emp


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #34967] Bad behavior of structures with an empty cell
Date: Thu, 13 Dec 2012 15:32:22 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Lakeunicorn/3.6.13

Follow-up Comment #3, bug #34967 (project octave):

The struct command is for creating struct *arrays*, not scalar structs. When
the value arguments of struct() are cell arrays, they get unpacked into
cs-lists defining each value in the struct array. The equivalent of


s.a = {}


is therefore


s = struct("a", {{}})


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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