[Gretl-devel] null default for matrices while packaging

oleg_komashko at ukr.net oleg_komashko at ukr.net
Tue Apr 5 12:31:54 EDT 2016


Dear all,
This is a stub for trial "package":


function void mymatr(int x, matrix ma[null])
    if isnull(ma)
        txt = "null matrix"
        print txt
    else
        print ma
    endif
end function

The packages editor GUI dislikes [null]:

After saving .gfn  in "Edit function code" window
I have:

function void mymatr (int x,
                      matrix ma)
    if isnull(ma)
        txt = "null matrix"
        print txt
    else
        print ma
    endif
end function

[null] vanished

Oleh

 
 


More information about the Gretl-devel mailing list