Skip to content

Instantly share code, notes, and snippets.

@jots
Created May 8, 2014 07:12
Show Gist options
  • Save jots/e11ec6bfffd8a35f753b to your computer and use it in GitHub Desktop.
Save jots/e11ec6bfffd8a35f753b to your computer and use it in GitHub Desktop.
import unsigned
type hp = array[0..1,uint32]
var
cells: seq[hp] = @[]
ncells = 3
cells.add( [uint32(1),uint32(0)] )
echo repr(cells)
# => 0x7f8197d0b050[[(invalid data!), (invalid data!)]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment