terralang / terra

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.
terralang.org
Other
2.72k stars 201 forks source link

Document two-argument macro() behavior #466

Open ErikMcClure opened 3 years ago

ErikMcClure commented 3 years ago

You can use macro(fn, fn) to create a macro that can be invoked from either Terra or Lua contexts, which is very useful when building generic type functions. This behavior is not documented anywhere.