[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/
- [Octave-bug-tracker] [bug #55495] function loaded with autoload does not execute at the first call, Klaus Braun, 2019/01/16
- [Octave-bug-tracker] [bug #55495] function loaded with autoload does not execute at the first call, John W. Eaton, 2019/01/16
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, John W. Eaton, 2019/01/16
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, Klaus Braun, 2019/01/17
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that,
John W. Eaton <=
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, Mike Miller, 2019/01/18
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, Klaus Braun, 2019/01/18
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, Kai Torben Ohlhus, 2019/01/20
- [Octave-bug-tracker] [bug #55495] autoload should only work for .oct files; documentation should also be clear about that, Klaus Braun, 2019/01/21