|
From: | Guillaume |
Subject: | [Octave-bug-tracker] [bug #61843] Regression with subscripted assignments with arrays of objects |
Date: | Mon, 17 Jan 2022 12:13:07 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL: <https://savannah.gnu.org/bugs/?61843> Summary: Regression with subscripted assignments with arrays of objects Project: GNU Octave Submitted by: gyom Submitted on: Mon 17 Jan 2022 05:13:05 PM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Regression Status: None Assigned to: None Originator Name: Guillaume Originator Email: Open/Closed: Open Release: 7.0.90 Discussion Lock: Any Operating System: Any _______________________________________________________ Details: There seems to be a regression with subsasgn in the context of array of objects and chained assignments. The following code works in 5.2 but returns the error below with dev: classdef foo properties a; endproperties methods function obj = foo obj.a = struct ("b", 1); endfunction endmethods endclassdef obj(1) = foo; obj(2) = foo; obj(1).a.b ans = 1 obj(1).a.b = 2 error: invalid dot name structure assignment because the structure array is empty. Specify a subscript on the structure array to resolve. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61843> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |