Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # case 1
- proc f(s:string) {.compileTime.} = echo s
- let s {.compileTime.} = "hello world"
- f(s)
- # should be
- # const S = f(s)
- # echo s
- # case 2
- proc f(s:static[string]) =
- static:
- echo s
- discard
- let s {.compileTime.} = "hello world"
- f(s)
Advertisement
Add Comment
Please, Sign In to add comment