octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]