t19231.nim 251 B

12345678910111213141516171819
  1. discard """
  2. matrix: "--mm:orc"
  3. targets: "c cpp"
  4. """
  5. type
  6. Game* = ref object
  7. proc free*(game: Game) =
  8. var mixNumOpened:cint = 0
  9. for i in 0..<mixNumOpened:
  10. mixNumOpened -= 1
  11. proc newGame*(): Game =
  12. new result, free
  13. var
  14. game*: Game