#45 null list printing


Just a little bug in list printing. When declaring a null list, gretl prints out all the variable in the dataset if the print command is invoked on the list.


nulldata 10

x = uniform()
y = uniform()

list lista = null #like it was lista = dataset

print lista

lista # this works



  • Allin Cottrell

    Allin Cottrell - 2008-03-16
    • assigned_to: nobody --> allin
    • status: open --> closed-fixed
  • Allin Cottrell

    Allin Cottrell - 2008-03-16

    Logged In: YES
    Originator: NO

    Not totally clear this is a bug, because "print" with no arguments
    is supposed to print the entire dataset. The question is whether
    giving a null list is or is not the same as "giving no arguments".

    However, I can see a case for treating a null list differently.
    For consistency, I have applied the change to all commands that
    default to the entire dataset, with the exception of "store".
    Supplying a null list will make these commands a no-op, apart
    from store, where it will generate an error.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks