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

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

[Octave-bug-tracker] [bug #59405] ENH: R2019b argument validation syntax


From: Michael
Subject: [Octave-bug-tracker] [bug #59405] ENH: R2019b argument validation syntax
Date: Tue, 3 Nov 2020 09:51:18 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.58

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

                 Summary: ENH: R2019b argument validation syntax
                 Project: GNU Octave
            Submitted by: scivision
            Submitted on: Tue 03 Nov 2020 02:51:17 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.92
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Matlab R2019b added function argument validation syntax:
https://www.mathworks.com/help/matlab/matlab_prog/function-argument-validation-1.html
The current Octave interpreter (at least through Octave 6.0.92) sees this
syntax as invalid.

== Example ==


function y = timestwo(x)
arguments
  x {mustBeNumeric}
end

y = 2*x;

end


== Possible workaround ==

If the Octave interpreter could at least be made to ignore the "arguments"
block, this would allow more Matlab scripts to be run.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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