[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4 |
Date: |
Tue, 13 Feb 2024 09:07:16 -0500 (EST) |
Follow-up Comment #16, bug#50202 (group octave):
looking at this doc case, just adding that @cbm was correct that classes need
to deal with this themselves, but that may be the case even if they don't
overload subsasgn. e.g., octave's inputParser does not have a subsref or
subsasgn method, and:
>> b = inputParser()
b =
inputParser object with properties:
FunctionName : ""
CaseSensitive : false
KeepUnmatched : false
PartialMatching : true
StructExpand : true
Defined parameters:
{}
>> b(5)= inputParser()
error: Invalid resizing operation or ambiguous assignment to an out-of-bounds
array eleme
nt
whereas matlab2023b:
>> b = inputParser()
b =
inputParser with properties:
FunctionName: ''
CaseSensitive: 0
KeepUnmatched: 0
PartialMatching: 1
StructExpand: 1
Parameters: {1×0 cell}
Results: [1×1 struct]
Unmatched: [1×1 struct]
UsingDefaults: {1×0 cell}
>> b(4) = inputParser()
b =
1×4 inputParser array with properties:
FunctionName
CaseSensitive
KeepUnmatched
PartialMatching
StructExpand
Parameters
Results
Unmatched
UsingDefaults
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?50202>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4,
Nicholas Jankowski <=
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4, Nicholas Jankowski, 2024/02/13
Message not available