Created
August 4, 2018 22:33
-
-
Save zacharycarter/e44274861f211bb2345d4fb2a1bd87a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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