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

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

[Octave-bug-tracker] [bug #55495] autoload should only work for .oct fil


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that
Date: Thu, 17 Jan 2019 17:51:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #3, bug #55495 (project octave):

In your .m file, f_2 is a subfunction that is only supposed to be visible to
the main function defined in that file, f_test.  That's why it is not defined
after you simply call f_test.

It does appear that autoload can (sort of) work for .m files that contain
multiple functions.  But given the way that subfunctions work, and because
executing a script file that contains multiple functions will define all of
them and make them globally visible, I think it would be best if we made
autoload work only for .oct files.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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