|
From: | Kai Torben Ohlhus |
Subject: | [Octave-bug-tracker] [bug #47680] classdef @ operator to overrided superclass methods |
Date: | Wed, 20 Feb 2019 05:13:54 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36 |
Follow-up Comment #23, bug #47680 (project octave): Coming back to comment #19: Is the argument ('obj') omitted by intention in the definition of superclass.meth()? When changing the code to % superclass.m: classdef superclass methods function meth (obj) % or alike 'foo-i-hithere' end end end It runs fine in both Octave 6.0 and Matlab R2018b. If the argument in superclass.meth() was omitted by intention, Octave should definitely raise an error because of the equivalence of address@hidden (); address@hidden (other_obj); https://www.mathworks.com/help/matlab/matlab_oop/method-invocation.html Thus superclass.meth() must be able to handle a single input or error otherwise. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?47680> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |