[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49379] classdef constructor: .argn. loses fir
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #49379] classdef constructor: .argn. loses first argument, inputname(n) returns inputname(n+1) |
Date: |
Wed, 5 Apr 2017 14:28:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Update of bug #49379 (project octave):
Status: Confirmed => Patch Submitted
_______________________________________________________
Follow-up Comment #2:
Attached is a patch that fixes that issue for me.
However, I do not understand the backgrounds of the implementation of classdef
in Octave. But this comment in line 473 of ov-usr-fcn.cc looks strange to me:
// If this function is a classdef constructor, extract the first input
// argument, which must be the partially constructed object instance.
AFAIU, the constructor is the only "method" of a classdef that does NOT
receive the object as the first argument (apart from static methods). So the
real problem might be somewhere else and a proper fix should maybe be
different from this patch.
(file #40270)
_______________________________________________________
Additional Item Attachment:
File name: bug49379_classdef_constructor_inputname.patch Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49379>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #49379] classdef constructor: .argn. loses first argument, inputname(n) returns inputname(n+1),
Markus Mützel <=