The transformation that quoted code generated by macros undergoes before being inserted into a local AST needs two things:
- documentation in metaprogramming
- exposure to the user
These are related because documentation will be much easier and more effective if it can be demonstrated.
ORIGINAL ISSUE
On e519c91, the following:
function value_one() #Of course it works
1
end
macro defv2 ()
:(function value_two()
2
end)
end
@defv2
value_two #Not defined!
Found this out with the get_c_fun macro.. I'd much prefer to keep using that.
The transformation that quoted code generated by macros undergoes before being inserted into a local AST needs two things:
These are related because documentation will be much easier and more effective if it can be demonstrated.
ORIGINAL ISSUE
On e519c91, the following:
Found this out with the get_c_fun macro.. I'd much prefer to keep using that.