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?
cheers
sven