Am 25.04.2013 15:43, schrieb Allin Cottrell:
On Thu, 25 Apr 2013, Allin Cottrell wrote:
> On Thu, 25 Apr 2013, Sven Schreiber wrote:
>
>> I was mixing up the parentheses and tried to access a single value of a
>> series like this:
>> x(1995:1) -- instead of x[1995:1]
>>
>> The problem is that gretl did not complain [...]
>
> We could, I suppose, make an internal distinction between
> "general" scalars and scalars that have been converted from
> observation identifiers, and limit the contexts in which we
> accept the latter.
I've done something like this in CVS, and done a certain
amount of checking for bad side-effects. OK so far, but more
testing would be good.
Thanks for the explanation of the cause (other email).
So the parsing ordering seems to be (1) internal conversions (here: to
obs index), (2) syntax-check (maybe implicit in the evaluation step). My
intuitive reaction would be that this ordering should be reversed; first
a syntax check (insofar as it's possible), and only afterwards do any
internal conversions, because the syntax is an "external thing" if you
know what I mean.
I don't know if that would be possible, and thank you of course for
addressing the issue. Just trying to get at the cleanest solution.
cheers,
sven