bugGNU Octave - Bugs: bug #35497, inputname fails

 
 

bug #35497: inputname fails

Submitter:  Muhali <muhali>
Submitted:  Fri 10 Feb 2012 12:01:18 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 03 Jan 2014 06:07:48 PM UTC, comment #3: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/ec87e965c246

John W. Eaton <jwe>
Group administrator
Fri 23 Mar 2012 09:18:12 AM UTC, comment #2: 

I had done some tests, and find that when use feval(@fn, ...), in function fn,  _varval_(".argn.") will lost the last parameter of feval.  For example:

octave:1> function y = foo(u,v, w)
> y = __varval__(".argn.");
> end
octave:2> feval(@foo, pi, e, pi)
ans =
{
  [1,1] = pi
  [2,1] = e
}

maybe there is something wrong in _varval_. But I don't known where _varval_ is defined. any advices? or is there any document about the development of octave? Thanks.

wenchuang gan <meteorgan>
Sat 11 Feb 2012 04:56:08 AM UTC, comment #1: 

Confirmed on a recent tip (2/10/2012).

Rik <rik5>
Group administrator
Fri 10 Feb 2012 12:01:18 AM UTC, original submission:  

For the function


function y = foo(u, v)
   y = inputname(2) ;
endfunction


one gets


octave> foo(pi, e)
ans = e
octave> feval(@foo, pi, e)
error: foo: A(I): index out of bounds; value 2 out of bound 1
error: called from:
error:   /usr/local/octave/share/octave/3.7.0+/m/miscellaneous/inputname.m at line 31, column 7
error:   foo at line 2, column 6


Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by meteorgan (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-03 jwe Open/ClosedOpen Closed
    2014-01-03 jwe StatusConfirmed Fixed
    2012-02-11 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code