On Sun, 19 Sep 2021, Riccardo (Jack) Lucchetti wrote:
On Sun, 19 Sep 2021, Sven Schreiber wrote:
> Am 17.09.2021 um 21:41 schrieb Riccardo (Jack) Lucchetti:
>> On Fri, 17 Sep 2021, Allin Cottrell wrote:
>
>> Aha, my bad, sorry, I had mis-diagnosed the problem. The problem arises
>> with the $coeff accessor. For example:
>>
>> <hansl>
>> open data4-1
>> ols 1 0 2 3 4
>> b = $coeff[end-2:]
>> </hansl>
>
> So apart from these special hiccups, is the new (but experimental)
> syntax supposed to work for indexing in general, including arrays?
As far as my understanding goes, yes, but I think it'd be wise to wait for
one (or maybe two) release cycle(s) before advertising it as official.
Just before release: I just realised that "end" doesn't work for strings
(neither does the [k:] syntax anyway). Allin, would this be difficult to
add? Not a priority of course, I'm perfectly happy with putting this off
for a while.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------