On Thu, Dec 1, 2022 at 11:06 AM Sven Schreiber <sven.schrei...@fu-berlin.de> wrote: > > if I create a new matrix without assignment (matrix m), I get a 0x0 > empty matrix. Can I rely on this behavior or is it in principle > undefined and could change in the future?
You can rely on it. It's documented: see section 11.9 of the Gretl User's Guide. Most objects are initialized to an appropriate definition of "empty" under bare declaration. The one exception is series, which cannot be exactly "empty" but are initialized to all-missing. The only other pertinent point to note is that while you can repeat a "null definition" such as "matrix m = {}" you cannot repeat a bare declaration in hansl (or not without first deleting the object in question) since that would seem to imply that you've forgotten that the identifier in question is already declared. Allin _______________________________________________ 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/