Hi function writers,

there's a slight problem with the bcheck() function, see this example:

<hansl>

function void bcheckcheck (bundle b[null])
    bundle targ = _()
    eval bcheck(&targ, b) # error: 2nd arg is empty
end function

bcheckcheck()

</hansl>

The point is that the main purpose of bcheck is to handle a bundle with options supplied by the user (here: "b"). So if the user is happy with the defaults and doesn't supply such a bundle, I'd argue that bcheck should simply accept that and do nothing.

I'm aware that the pass-through of a null value for the function argument b is recent (gretl 2023b, AFAIK); so I guess that bcheck() simply has to be adjusted to the new situation.

thanks

sven

_______________________________________________
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/

Reply via email to