On Fri, Mar 15, 2019 at 4:01 PM Cottrell, Allin <cottrell(a)wfu.edu> wrote:
Gretl shouldn't crash, but there's a rather obvious bug in your code:
you are assigning
to self.fc from a function (meanf) that doesn't return anything. In
general gretl should be
be able to catch that bug. I guess the problem in this case is that
gretl has no means of
knowing what type of return value is wanted: "self.fc" carries no type
information.
On experimentation, that's indeed the issue: if you do
matrix self.fc = mean(&self)
you get an error message and not a crash. Still, of course, the
crash should not occur.
Allin