Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created February 7, 2014 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barcharcraz/8857591 to your computer and use it in GitHub Desktop.
Save barcharcraz/8857591 to your computer and use it in GitHub Desktop.
proc newSeqAlias[T](): seq[T] =
result = newSeq[T]()
template test(t: typedesc) =
var mmmm = newSeqAlias[t]()
when isMainModule:
test(int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment