[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64213] crash while using subsasgn with struct
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #64213] crash while using subsasgn with struct and multiple subs value |
Date: |
Sat, 5 Aug 2023 09:36:59 -0400 (EDT) |
Update of bug #64213 (project octave):
Status: Ready For Test => Fixed
Open/Closed: Open => Closed
Fixed Release: None => 8.3.0 (current stable)
_______________________________________________________
Follow-up Comment #7:
Using the motivating example from comment #1, I'm see this:
>> function o = nested_assignment(name_list, value)
idx.type = ".";
idx.subs = {};
name_list_length = length (name_list);
for i = 1:name_list_length
idx.subs{i} = name_list{i};
endfor
o = struct ();
subsasgn (o, idx, value);
endfunction
>> nested_assignment({"Vipul", "Cariappa", "N", "T"}, 3)
error: subsasgn: structure field names must be strings
error: called from
nested_assignment at line 9 column 5
>> version -hgid
ans = e039114b8a1a
>>
Closing as fixed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64213>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #64213] crash while using subsasgn with struct and multiple subs value,
Markus Mützel <=