objFile.nim 124 B

123456789
  1. type Obj* = object
  2. v*: int
  3. proc `=destroy`(this: var Obj) =
  4. echo "igotdestroyed"
  5. this.v = -1
  6. var test* = Obj(v: 42)