bugGNU Octave - Bugs: bug #36240, incorrect isargout after using a...

 
 

bug #36240: incorrect isargout after using a trailing ~ once

Submitted by:  John Hunt <huntj>
Submitted on:  Wed 18 Apr 2012 02:53:05 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Wed 18 Apr 2012 07:31:04 PM UTC, comment #6:

That's working perfectly, thank you !

John Hunt <huntj>
Wed 18 Apr 2012 06:24:15 PM UTC, comment #5:

I checked in teh following change on the stable branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/6131fead3135

This fix will appear in the upcoming 3.6.2 release.

It appears to fix the problem for me, so I'm closing this report.

John W. Eaton <jwe>
Project Administrator
Wed 18 Apr 2012 05:22:34 PM UTC, comment #4:

I still feel that the 5th output :

should yield 1 1 instead of 1 0,
shouldn't it ?

It did before calling [x, ~] = try_isargout()
(see output 1).

John Hunt <huntj>
Wed 18 Apr 2012 05:17:53 PM UTC, comment #3:

comment #1: I agree...
hg id
3a9a56999ce5+

John Hunt <huntj>
Wed 18 Apr 2012 04:27:44 PM UTC, comment #2:

Looking at the help string for isargou(), I think it is working as intended.

The solution is to use "nagout () >= n" in place of "isargout (n)" when assigning the output variables.

Ben Abbott <bpabbott>
Project Member
Wed 18 Apr 2012 03:04:55 PM UTC, comment #1:

Small favour, what is "the latest hg pull"? Please report the output of "hg id".

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 18 Apr 2012 02:53:05 PM UTC, original submission:

The following bug is probably the reason for
bug #36221
which is thus not limited to unique.

the try_isargout.m function attached does not work after
being called with a trailing ~ as in
[x, ~] = try_isargout()

it seems that p->is_black_hole() returns wrong results,
since nbh is wrong. This sis shown by the warnings I added
line 612 of src/ov-usr-fcn.cc :

the behaviour is the same in 3.6.1 and in
the latest hg pull

John Hunt <huntj>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25682:  try_isargout.m added by huntj (156B - text/x-matlab)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by huntj (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 0 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 18 Apr 2012 06:24:15 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 18 Apr 2012 02:53:05 PM UTChuntjAttached File-=>Added try_isargout.m, #25682

    Back to the top


    Powered by Savane 3.1-cleanup1