Feature

Proc-pragma macros ({.async.})

What it enables

A macro can receive and return a proc routine — the mechanism behind writing {.async.} instead of {.passive.}. Works when the macro is imported and across native/JS bit widths.

How

proc survives the NimNode⇄NIF round-trip, imported macros fall back to their on-disk plugin, and plugins build/run host-native regardless of the target (issues #5, #8a/b/c).

Files: lib/std/private/macros_nif.nim, nimony/semcall.nim, nimony/macro_plugin.nim

Verification

Covered by tasyncsugar.


Back to top

aoughwl — next-gen self-hosted platform for things n stuff. Reach out on Discord (timbuktu_guy) for access to the private backends.

This site uses Just the Docs, a documentation theme for Jekyll.