Issue #5

Proc-pragma macros silently dropped the routine

Symptom

A proc-pragma macro (e.g. {.async.}) silently produced nothing — the routine vanished with an “expression expected”.

Root cause

The NimNode ⇄ NIF codec had no "proc" case, so a proc routine round-tripped through the codec to an empty node.

The fix

Add of "proc": nnkProcDef to the decoder and map it back on the encode side, so proc routines survive the round-trip.

Files touched: lib/std/private/macros_nif.nim

Verification

Covered by macros suite.


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.