On Tue, 28 Feb 2017, Artur Tarassow wrote:
Dear Allin,
thanks for your response. Your second approach
> I then quit gretl, restarted, and tried the same exercise again,
> but this time loading FEP.gfn for editing before running the
> script that defines DrawLoss2. The only difference this time was
> that DrawLoss2 appears as the last option on the left in the
> Add/Remove window. After adding this function it "stayed added".
works here now! I don't know why but at least I am happy that it
works. But of course it's puzzling the the first approach I
described works on your but not my machine...
I've taken a close look at the underlying code (for adding a
function to a function package via the GUI). I didn't see any
obvious failure mode, but the code did seem a bit round-about. So
I've replaced it with a more direct implementation which I hope
may be more robust.
I'd be interested to hear if anyone using current git or snapshot is
still able to provoke the problem that has been reported (that is,
you add a function to your package, using the "Add/Remove functions"
dialog without any apparent error, yet it turns out that the new
function is not really added).
Allin