Skip to content

Instantly share code, notes, and snippets.

@mrzv
Created January 20, 2014 02:20
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 mrzv/8513889 to your computer and use it in GitHub Desktop.
Save mrzv/8513889 to your computer and use it in GitHub Desktop.
Nimrod segfault
import tables
type
TMyTable[T] = TTable[int,T]
proc `[]=`[T](m: TMyTable[T], k: int, v: T) =
tables.`[]=`[int,T](m,k,v)
var m: TMyTable[int] = initTable[int,int]()
m[2] = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment