On Fri, 14 Dec 2007, Sven Schreiber wrote:
> "include" is meant for function files; what you're
doing here is really a
> "run".
'Run' and 'include' also keep confusing me. Is it correct that
currently the differences between 'include' and 'run' are:
* include can also read in a matrix xml file
* run works inside functions, too
Yes, I think that's right.
I may be missing something, but essentially I still don't
understand why it's necessary --apart from historical reasons--
to have two separate commands that exist for executing script
files. Couldn't they be merged?
They are pretty much merged at the code level, but I think it's
worth keeping the two command words for clarity in scripts. "run"
is supposed to indicate that the file in question contains
arbitrary gretl commands, to be executed right away; the basic
purpose of "include" is to include function definitions (with no
commands being executed right away).
We could, I suppose, make an effort to police the content of files
opened with "include", but I'm not sure that's worth it.
Allin.