Am 11.06.2025 um 17:10 schrieb Riccardo (Jack) Lucchetti:
On 10/06/25 12:58, Cottrell, Allin wrote:
> On Tue, Jun 10, 2025 at 5:20 AM Paolo Chirico
> <paolo.chirico(a)uniupo.it> wrote:
>>
>> Dear all,
>> I have just deleted a package I created for testing. However, the main
>> (public) function contained in the package seems to still exist, and
>> gretl prevents me from creating a new one with the same name.
>> I have even uninstalled gretl and installed the latest version, but the
>> function still exists even though the package no longer appears in the
>> package list.
>> How can I eradicate it permanently?
>
> Paolo, what's the name of this function? Are you sure it's not built-in?
>
> For an ordinary user-defined function you can do
>
> function funcname delete
Paolo, are you saving to a session file? Functions that were defined
at the time of saving are restored when the session file is re-opened.
Could that be the case?
That's a very clever and plausible hypothesis, I wasn't really aware of
this behavior. Let's see if Paolo confirms this.
Apart from that, after opening the session file, one could perhaps do
"clear --functions".
cheers
sven