Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
type
CircAlloc* [Size: static[int] , T] = tuple # Better less overhead
baseArray : array[Size,T]
index : uint16
type
Job = object of RootObj
var foo {.threadvar.}: CircAlloc[1,Job]
when isMainModule:
echo "Hello World!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment