[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49379] classdef constructor: .argn. loses fir
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49379] classdef constructor: .argn. loses first argument, inputname(n) returns inputname(n+1) |
Date: |
Tue, 18 Oct 2016 23:08:16 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Update of bug #49379 (project octave):
Category: Octave Function => Interpreter
Status: None => Confirmed
Release: 4.0.0 => dev
Operating System: Microsoft Windows => Any
Summary: inputname(ii) in class constructor returns
inputname(ii+1) => classdef constructor: .argn. loses first argument,
inputname(n) returns inputname(n+1)
_______________________________________________________
Follow-up Comment #1:
Thanks for your bug report. Confirmed here, only affects new-style classdef
based classes.
The code for inputname is very simple, the underlying bug is the value of the
special variable ".argn." in a classdef constructor function.
>> type classtest
classdef classtest
methods
function obj = classtest ()
disp (__varval__ (".argn."));
endfunction
endmethods
endclassdef
>> x = y = z = 0;
>> classtest (x, y, z);
{
[1,1] = y
[2,1] = z
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49379>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/