octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56328] Unknown function called as foo(end) gi


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #56328] Unknown function called as foo(end) gives unclear error
Date: Wed, 15 May 2019 16:07:26 -0400 (EDT)
User-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1

URL:
  <https://savannah.gnu.org/bugs/?56328>

                 Summary: Unknown function called as foo(end) gives unclear
error
                 Project: GNU Octave
            Submitted by: nrjank
            Submitted on: Wed 15 May 2019 08:07:25 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Nicholas Jankowski
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Any

    _______________________________________________________

Details:

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'.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56328>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]