`expandMacros` with its conversion to `typed` is really fragile with today's
compiler. Instead use this to see what's going on:
import future
import macros
macro decDumbType(): untyped =
result =
macros.quote do:
type Dumb = ref object of RootObj
contents: int
method frobnicate(this: Dumb) {.base.} =
echo "frobnicating!"
echo repr result
decDumbType()
- what does macros.quote() do exactly? bkerin
- Re: what does macros.quote() do exactly? Araq
- Re: what does macros.quote() do exactly? bkerin
- Re: what does macros.quote() do exactly? Udiknedormin
