Am 07.11.2012 17:44, schrieb Henrique Andrade:
Dear Gretl Team,

I think I found a small error in Hansl when someone insert commas in
the end of the comment line. Please take a look at the following code
to check this.

<hansl>
open australia.gdt

list vars = dataset
lags 2 ; vars

list list1 = null     # If I terminate this comment line WITH a comma,
list list2 = null     # I get an error (in the following loop) saying
                         # list2_ati does not exist.

loop i=1..2 --quiet
    list list1 = list1 || PAU_$i
    loop j=1..2 --quiet
        list list2 = list2 || PUS_$j
    endloop
endloop

list list1 = null     # If I terminate this comment line WITHOUT a comma
list list2 = null     # I do not get the error saying list2 does not exist.

loop i=1..2 --quiet
    list list1 = list1 || PAU_$i
    loop j=1..2 --quiet
        list list2 = list2 || PUS_$j
    endloop
endloop

list list1 print
list list2 print
</hansl>

Also I would like to make a suggestion: In my humble opinion, the
syntax to print list elements is not so intuitive and it looks like
very different from the other uses of the "print" command. My
suggestion is use something like this:
I agree on that. I'm also in favor of the '--' method
print list1 --names

or

print list1 --varnames


Best regards,
Henrique Andrade
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users