Skip to content

document macro hygienification; expose it to the user #1191

@o-jasper

Description

@o-jasper

The transformation that quoted code generated by macros undergoes before being inserted into a local AST needs two things:

  1. documentation in metaprogramming
  2. 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.

Metadata

Metadata

Assignees

Labels

docsThis change adds or pertains to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions