On Wed, 24 Oct 2018, oleg_komashko(a)ukr.net wrote:
I do insist that tokenizer MUST distinguish ...
> It does, but that leaves the problem of lags, as in series(-1)
Say, I download some database and include my own lagreg. Why on
earth casual coincidence of some variable name with one of the
package functions should cause any problem?
That's already answered. It will _not_ cause a problem unless your
database contains a series named "lagreg", of which you want to take
lags using the "series_name(<lag-spec>)" syntax.
That (lag) syntax long predates the possibility of user-defined
functions in hansl. So far as I know this sort of collision has
never been a practical problem to date, but it's not very
satisfactory that it's possible at all. So we're trying to figure
out the best way of preventing it. Rhetorical questions are not
particularly helpful to that task.
Allin