Closed porky11 closed 6 years ago
(import macros) (using-namespace std.macros (def test (macro intern (void) (qq identity (uq (mnfv mc 1)))))) (def main (fn extern-c void (void) (printf "%i\n" (test))))
(test) expands to (identity (mnfv mc 1)) instead of (identity 1)
(test)
(identity (mnfv mc 1))
(identity 1)
Similar problem with uql: (qq (uql (fun arg))) will expand correctly, but fun is called twice, which leads to problems in some cases.
(qq (uql (fun arg)))
fun
Thanks, these problems have now been fixed.
(test)
expands to(identity (mnfv mc 1))
instead of(identity 1)