The recent fix to the biprobit command led me to think about the fact that we currently don't have a way to indicate the element of a matrix that is second-from-last, third-from-last, etc.

At present we have to use contructs like

<hansl>
b = a[3:rows(a)-1]
</hansl>

In matlab, you can use the "end" keyword, as in

<matlab>
b = a(3:end-1)
</matlab>

I was wondering if we could have the same syntax (and ideally extend it to other multidimensional objects, such as arrays). After all, "end" is already a reserved word, so there's no risk of "end" being a pre-existing identifier. This feature would probably complicate a bit the handling of the matrix slicing syntax, but I guess it's doable.

Question #1: is this desirable? (My answer: yes) Question #2: is this doable? (I guess it is) Question #3: is this worth implementing for 2021d, which is going to be out soon? (maybe not).

-------------------------------------------------------
  Riccardo (Jack) Lucchetti
  Dipartimento di Scienze Economiche e Sociali (DiSES)

  Università Politecnica delle Marche
  (formerly known as Università di Ancona)

  r.lucche...@univpm.it
  http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/

Reply via email to