Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
{.deadCodeElim: on.}
proc getValue(): int {.inline, noSideEffect.} =
debugEcho "got 1"
result = 1
let x = getValue()
let y = getValue()
echo y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.