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

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

[Octave-bug-tracker] [bug #56187] Support local functions at end of scri


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56187] Support local functions at end of scripts like Matlab
Date: Tue, 23 Apr 2019 14:04:54 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Follow-up Comment #13, bug #56187 (project octave):

It is possible that an Octave user has a script file that looks like a Matlab
script with local functions


a = 1;
b = 2;
## more delarations

## some code that does things

function myfunc1 ...

function myfunc2 ...
...
endfunction


In this case, the Octave expected behavior would be to execute the
declarations and script code, and to define the functions globally so they can
be called by the user later.

Providing a comment tag that the user can add to their file to mark this as an
import script, even though the format looks exactly like a Matlab script with
local functions, would be a good thing.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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