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

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

[Octave-bug-tracker] [bug #61471] Automatic check of too many inputs


From: Guillaume
Subject: [Octave-bug-tracker] [bug #61471] Automatic check of too many inputs
Date: Fri, 12 Nov 2021 12:54:51 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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

                 Summary: Automatic check of too many inputs
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Fri 12 Nov 2021 05:54:50 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

The NEWS document for Octave 7.1 says "Calling a user-defined function with
too many inputs or outputs is now
an error.  The interpreter makes this check automatically.". It seems to work
for me with outputs but not inputs:


octave:1> version
ans = 7.0.0
octave:2> type testnoinput
testnoinput is the user-defined function defined from: /tmp/testnoinput.m

function testnoinput
endfunction

octave:3> testnoinput (1)
octave:4> a = testnoinput (1)
error: testnoinput: function called with too many outputs
error: called from
    testnoinput





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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