bugGNU Octave - Bugs: bug #56328, Unknown function called as...

 
 

bug #56328: Unknown function called as foo(end) gives unclear error

Submitter:  Nicholas Jankowski <nrjank>
Submitted:  Wed 15 May 2019 08:07:25 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Nicholas Jankowski Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 May 2019 09:16:47 PM UTC, comment #1: 

This has been known for a long time, and was reported quite a long time ago, see bug #33637. Closing this bug report as a duplicate.

Mike Miller <mtmiller>
Group Member
Wed 15 May 2019 08:07:25 PM UTC, original submission:  

As brought up on the help mailing list:

Reported in 4.2.2, confirmed in 5.1.0


For an undefined function or variable foo:

octave:1> foo(end)
error: invalid use of end


It was suggested this should refer to the undefined function or variable, not the call to end.


Matlab’s error:

>> blahblah(end)
Undefined function or variable 'blahblah'.

Nicholas Jankowski <nrjank>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Submitted the item)
  • -email is unavailable- added by nrjank
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-15 mtmiller Dependencies- Depends on bugs #33637
    2019-05-15 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
    2019-05-15 nrjank Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code