[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming from a list |
Date: |
Fri, 28 Mar 2014 20:29:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?41992>
Summary: inputname fails for arguments stemming from a list
Project: GNU Octave
Submitted by: None
Submitted on: Fri 28 Mar 2014 08:29:16 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: bat
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
I define:
function foo(varargin)
__varval__(".argn.")
nargin
inputname(1)
inputname(2)
If I call foo(5,3), I get the expected behavior where inputname(1) and
inputname(2) both evaluate to "".
octave-cli-3.8.1> foo(5,3)
ans =
{
[1,1] = 5
[2,1] = 3
}
ans = 2
ans =
ans =
If I define c={5 3} and call foo(c{:}) I expect to get the same thing. But
instead:
octave-cli-3.8.1> c={5 3}; foo(c{:})
ans =
{
[1,1] = c {:}
}
ans = 2
ans =
error: foo: A(I): index out of bounds; value 2 out of bound 1
error: called from:
error: /usr/local/share/octave/3.8.1/m/miscellaneous/inputname.m at line 31,
column 7
I thought this might be fixed by bug #35497. Tried incorporating the
development version of oct-obj.h. However, I received same results.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41992>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41992] inputname fails for arguments stemming from a list,
anonymous <=