I wasn't completely sure how to deal with the declare function. I could give it FunAttrs as argument like define, but declare doesn't have the garbage collection attribute.
This looks good to me, thanks for fixing this! I think it would be reasonable to introduce another type like FunAttrs for the declare function, if you'd like to tackle that in a follow-up PR.
Fixes #77
I wasn't completely sure how to deal with the
declare
function. I could give itFunAttrs
as argument likedefine
, butdeclare
doesn't have the garbage collection attribute.The main changes are:
Declare
Define
GlobalAlias