Am 13.05.2015 um 01:34 schrieb Allin Cottrell:
Now admittedly one could argue that giving the name of a bundle plus a
key that identifies a scalar member ought to count as giving "the name
of a pre-existing scalar variable", but it's not literally true and it
would take a good deal of work to make it so; and one could apply the
same argument to a single matrix element, even if identified in some
round-about way... leading in the limit to any expression that
identifies a scalar.
In gretl, "commands" are nice and simple, and you pay a price for that.
Ok, I understand. The background really is the wish to have code that is
readable by being short and with as little distracting lines of code as
possible. So I wanted to have something like:
<short_but_not_working>
vecm b.p b.r IBO IDE
</short_but_not_working>
while the more verbose version requires some copying:
<long_and_working>
p = b.p
r = b.r
vecm p r IBO IDE
</long_and_working>
Now there would be a compromise version where the copies could be
condensed into one line, syntax inspired from Python and Matlab:
<compromise_but_no_gretl_syntax>
p, r = b.p, b.r
vecm p r IBO IDE
</compromise_but_no_gretl_syntax>
I'm not asking for immediate implementation of this (too dangerous IMO),
and I could imagine this is quite difficult to achieve without side
effects. But still it would be nice...
thanks,
sven