issues about nested arrays
by Sven Schreiber
Hi,
I was just reminded that in version 2019d nested arrays were introduced.
Some small issues related to that:
- The keyword "arrays" works but isn't syntax-colored.
(Note to self: This would also have to be considered when pushing an
update to the hansl definitions for the listings package for Latex.)
- Section 10.8 of the guide seems to imply you can also use defarray()
to create a nested array. However, the following doesn't work for me:
<hansl>
matrices M = defarray(I(2))
arrays AM = array(1) # works
AM[1] = M # works
AM += M # works
delete AM
arrays AM = defarray(M) # error about wrong datatype
</hansl>
It seems to me either it's a bug or we should clarify the documentation.
thanks
sven
4 years, 3 months
exists() vs. inbundle()
by Sven Schreiber
Hi,
I'm wondering what the value added of 'inbundle' over 'exists' is. In
principle both check for the existence of an object and return a type
code if yes.
I know that currently where inbundle(b, "m") returns 0 because m isn't
there, exists(b.m) instead yields an error. But I guess that could be
changed if wanted.
And vice versa: inbundle(a, "x") yields an error if there is no bundle
a, whereas exists(a.x) just returns 0. But are those differences really
by design or just by historical coincidence?
thanks
sven
4 years, 3 months
no error feedback from GUI join dialog
by Sven Schreiber
Hi,
without going into detail right now: I try to "join" something and when
I hit OK in the dialog there's no reaction. I'm expecting some kind of
error message.
thanks
sven
4 years, 3 months
Ramu Ramanathan
by Sven Schreiber
Hi,
for the first time in years (or ever?) I googled the first of gretl's
copyright holders as mentioned in gretl's startup message on the command
line: Ramu Ramanathan. From a posting of the UCSD it seems that he
passed away already seven years ago? I don't remember if it was ever
mentioned on the mailing lists or somewhere in the recent gretl sphere.
If that is true, perhaps eventually the gretl homepage would have to be
changed to speak of him in the past tense, as sad as it may be.
thanks
sven
4 years, 3 months
run or include from a string buffer source?
by Sven Schreiber
Hi,
not sure whether we discussed this before: I'm wondering whether it
would make sense (if it's feasible...) to allow something like "run s"
or "include s", where s would be a string variable containing sensible
gretl/hansl code.
This might mirror the possibility of "outfile" to redirect stuff to a
string buffer instead of a file (since 2016d according to the changelog).
thanks
sven
4 years, 3 months
obs markers with quotes
by Sven Schreiber
Hi, here's another thing that I just found which might be strange; see
this minimal example script:
<hansl>
set echo off
outfile markercheck.txt
printf "\"United Kingdom\""
end outfile
nulldata 1
markers --from-file=markercheck.txt
</hansl>
This works without errors, but when I double-click on the index series I
see as the obs marker the following literal string with only opening,
but not closing, quotes:
"United Kingdom
Somehow this looks troublesome, no?
And while we're talking about obs markers, here's also a newbie-style
question: Wouldn't it be good if the obs markers could also be set from
a series which is already in place? I guess quite often such a
pseudo-series containing the labels of the observations will already
exist, but for gretl the markers play a special role. Right now I think
one would have to save such a seriles to a file somehow and then reload
it with "markers --from-file..." - or is there another way?
thanks
sven
4 years, 3 months