Am 26.12.20 um 14:57 schrieb Sven Schreiber:
Am 15.11.2020 um 23:19 schrieb Allin Cottrell:
> On Sun, 15 Nov 2020, Sven Schreiber wrote:
>
>> I wonder if it could make sense to amend the 'clear' command with an
>> option that would also unload all user-defined functions from memory
>> and
>> the active session?
>
> Hmm, seems to me that "clear" with no option probably ought to do that
> (unload all functions), the general idea being that it returns gretl to
> pristine state. Would it be too backward incompatible to arrange for
> that?
[sorry for the delay] - No, I don't think so. Typically you want to keep
functions around if you do 'open' or 'nulldata', and that should remain
as-is.
But for 'clear' it's not documented that functions stay active, and
actually it could be declared a minor bug. So the only remaining
question then is whether there should be an option to _keep_ functions?
Hi Sven,
I have to admit that I never seen anybody unloading some function at
some point in a program.. I just searched whether something similar is
possible for Python but could not find anything. Even unloading a module
does not seem to be supported in Python. In Gretl one can at least run
<pkg unload PKGNAME>
Do you have a use-case for such a feature? I could not imagine any at
the moment.
Best,
Artur