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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #56187] Support local functions at end of scripts like Matlab
Date: Tue, 23 Apr 2019 14:33:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

RE: comment #13:  Ah, right, like an include file that includes a set of
variables and function definitions.  OK.

I think the real problem with globally visible functions in a script file is
that reloading the script if it changes in order to get updated function
definitions is problematic.  The script could do more than just define
functions.  Executing the script again at a random time is probably not good. 
And I think we currently do that (don't try to reload function definitions if
they come from a script file).  So maybe all that is needed is some other way
to indicate "this is a script file that may contain functions that should be
globally visible" instead of the old "1;" 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]