bugGNU Octave - Bugs: bug #48368, size () should give an error for...

 
 

bug #48368: size () should give an error for non-scalar DIM

Submitter:  Lachlan Andrew <lachlan>
Submitted:  Fri 01 Jul 2016 07:10:51 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  lachlan
Originator Name:  Lachlan Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Jul 2016 08:52:54 PM UTC, comment #1: 

I pushed your patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/e67ff2b11147).  I didn't feel it was important to tell the user exactly how they were wrong by including the size of the object they passed in for DIM.  Instead, I just emit an error with a message about what DIM should have been.

Correcting size() also uncovered two errors in gallery.m that I fixed as well.

Rik <rik5>
Group administrator
Fri 01 Jul 2016 07:10:51 PM UTC, original submission:  

Taking  size ([1 2 3], [4;5;6]) gives 1 instead of an error that the second argument is not a scalar.

I'll post the patch once I have the bug number.

Lachlan Andrew <lachlan>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

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 lachlan (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-01 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2016-07-01 lachlan Attached File- Added bug_48368_size_input_check.cset, #37656
        StatusNone Patch Submitted
        Assigned toNone lachlan

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code