bugGNU Octave - Bugs: bug #33529, nargin Matlab compatibility issue

 
 

bug #33529: nargin Matlab compatibility issue

Submitter:  Arnaud Delorme <arnodelorme>
Submitted:  Sat 11 Jun 2011 03:34:00 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 17 Jul 2011 01:50:49 AM UTC, comment #2: 

No apparent problem.  And no response to request for further example in 1 month.  Closing bug.

Rik <rik5>
Group administrator
Sun 12 Jun 2011 07:47:03 PM UTC, comment #1: 

The following seems to work OK for me, so I think you need to provide a complete example.


function foo ()
if (~nargin) return; end
end


then calling with


foo ()
foo (1)


both work for me without error.

John W. Eaton <jwe>
Group administrator
Sat 11 Jun 2011 03:34:00 PM UTC, original submission:  

if (~nargin) return; end; % crashes under Octave but works under Matlab

Arnaud Delorme <arnodelorme>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by arnodelorme (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-07-17 rik5 Open/ClosedOpen Closed
    2011-06-12 jwe StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code