|
From: | Ernst Reissner |
Subject: | [Octave-bug-tracker] [bug #60087] field access in classes |
Date: | Sun, 21 Feb 2021 11:26:31 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 |
URL: <https://savannah.gnu.org/bugs/?60087> Summary: field access in classes Project: GNU Octave Submitted by: ernstreissner Submitted on: Sun 21 Feb 2021 04:26:29 PM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Unexpected Error or Warning Status: None Assigned to: None Originator Name: Reissner Originator Email: Open/Closed: Open Release: 6.1.0 Discussion Lock: Any Operating System: Any _______________________________________________________ Details: I defined a class pn the constructor of which i attached below. Still in 6.1.0 one can write [pn(1) pn(2)]; In octave 5.2.0 one could write something like double([pn(1) pn(2)]) which is no longer possible for 6.1.0. error: can't perform indexing operations for class type error: called from double at line 41 column 7 I am quite sure, that also pn(1).jNum used to work but does no longer. Note that i never defined subsref or subsasgn. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sun 21 Feb 2021 04:26:29 PM UTC Name: pn.m Size: 6KiB By: ernstreissner <http://savannah.gnu.org/bugs/download.php?file_id=50900> ------------------------------------------------------- Date: Sun 21 Feb 2021 04:26:29 PM UTC Name: double.m Size: 2KiB By: ernstreissner <http://savannah.gnu.org/bugs/download.php?file_id=50901> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60087> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |