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: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #65667] classdef calls overloaded function struct() rather than builtin struct()
Date: Wed, 15 May 2024 12:52:33 -0400 (EDT)

Follow-up Comment #3, bug #65667 (group octave):

Matlab r2020b:

>> format compact
>> c = testClass ()
c = 
  testClass with no properties.
>> s = struct('p', c)
Error using testClass/struct
Too many input arguments. 
>> s.p = c
s = 
  struct with fields:

    p: [1×1 testClass]

so it looks the same and Octave behaves Matlab-compatible.


    _______________________________________________________

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]