untyped vaarg with macro #1700
Answered
by
lerno
LukyGuyLucky
asked this question in
Q&A
-
With this example https://github.com/c3lang/c3c/blob/master/test/test_suite/macros/macro_untyped_varargs_2.c3t I have two questions to ask for help:
|
Beta Was this translation helpful? Give feedback.
Answered by
lerno
Dec 20, 2024
Replies: 1 comment 1 reply
-
That would normally be true, but macro vaargs are special. In a way they are all lazily evaluated. This is why they are following access order. Secondly, for anything not Makes the macro do the following evaluation:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LukyGuyLucky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That would normally be true, but macro vaargs are special. In a way they are all lazily evaluated. This is why they are following access order. Secondly, for anything not
$vaexpr
evaluation will only happen one time, then the value is "locked" in the call itself. So the@foo(ping(1), ping(-1), ping(3141), ping(999 + 1));
Makes the macro do the following evaluation: