bugGNU Octave - Bugs: bug #36376, make nargin(fcn_name) work with...

 
 

bug #36376: make nargin(fcn_name) work with anonymous functions

Submitted by:  None
Submitted on:  Thu 03 May 2012 06:50:59 AM UTC  
Votes:  2  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Tilman SchröderOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.3
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 08 Aug 2013 07:18:18 AM UTC, comment #5:

I see. I cannot vote though, only project members can. Thank you for your reply and for your time!

Nicolas Boumal <nicolasboumal>
Wed 07 Aug 2013 05:53:40 PM UTC, comment #4:

There's a vote region in this bug report. You can vote there about how important this is for you.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Wed 07 Aug 2013 03:46:52 PM UTC, comment #3:

Dear developers of Octave,

If I may, I would like to vote this issue up: if you could include it in the next release, that would be awesome.

Thank you all very much for your hard work!

Best,
Nicolas

PS: I am new to this community. If this was not the place to post such a comment, I apologize.

Nicolas Boumal <nicolasboumal>
Thu 14 Mar 2013 02:26:38 PM UTC, comment #2:

Or rather, 3.8 or 4.0. Odd-numbered minor versions are not release versions.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Thu 14 Mar 2013 10:00:30 AM UTC, comment #1:

This appears to have already been fixed on the development branch, and should appear in the next octave release (3.7).

Max Brister <fisheater>
Project Member
Thu 03 May 2012 06:50:59 AM UTC, original submission:

Heyho,

in Matlab, nargin is able to tell the number of arguments of anonymous functions. In Octave, fcn_name has to be the name of an M-file, so nargin does not work with anonymous functions:

with the function M-file test.m.

It would be nice to have Octave return the correct number of input arguments for anonymous functions and, (possibly), work with function handles directly, not only with function names as strings.

Bye,
Tilman

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (Voted in favor of this item)
  • -unavailable- added by nicolasboumal (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by fisheater (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 2 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Aug 2013 05:58:09 PM UTCjordighCarbon-Copy-=>Added jordigh
    Thu 14 Mar 2013 10:00:30 AM UTCfisheaterStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1