[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65667] classdef calls overloaded function str
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct() |
Date: |
Thu, 16 May 2024 10:49:17 -0400 (EDT) |
Follow-up Comment #9, bug #65667 (group octave):
FYI - in general when we're asking what matlab does we are NOT asking anyone
to check the code, even when it is plaintext m code, just to check what the
matlab output is, if it produces an error, etc. It is very necessary that
anyone contributing to octave _not_ look at matlab sourcecode.
so your response about the output is sufficient.
just confirming with matlab 2024a:
>> p = inputParser ()
p =
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}
>> p.addParameter ('arg1',testClass)
>> p
p =
inputParser with properties:
FunctionName: ''
CaseSensitive: 0
KeepUnmatched: 0
PartialMatching: 1
StructExpand: 1
Parameters: {'arg1'}
Results: [1×1 struct]
Unmatched: [1×1 struct]
UsingDefaults: {1×0 cell}
>>
vs a recent octave stable build:
>> p = inputParser ()
p =
inputParser object with properties:
FunctionName : ""
CaseSensitive : false
KeepUnmatched : false
PartialMatching : true
StructExpand : true
Defined parameters:
{}
>> p.addParameter ('arg1', testClass)
error: struct: function called with too many inputs
error: called from
struct
addParameter at line 369 column 31
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65667>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65667] inputParser does not accept object with struct method as default value, Tibor Auer, 2024/05/01
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/04
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Philip Nienhuis, 2024/05/15
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/15
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/15
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Philip Nienhuis, 2024/05/15
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Rik, 2024/05/15
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/16
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(),
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/16
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Rik, 2024/05/16
- [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct(), Tibor Auer, 2024/05/16