> are the runtime checks also deactivated for g? Is there a difference if g is 
> a template or macro?

No, yes. Templates/macros "insert" the code into the proc so it is affected by 
the checks, whereas proc calls merely call already generated code elsewhere, in 
this case `g` was not instantiated with checks: off so it will have checks on 
inside it. Nim cannot track these pragma changes and generate a new proc every 
time.

> One extra question, not directly related to the one above: Is there a 
> difference in the generated code for

I see no reason for there to be a difference

Reply via email to