mstatic.nim 185 B

123456789
  1. type Foo* = object
  2. x*, y*: int
  3. proc `$`*(x: static Foo): string =
  4. "static Foo(" & $x.x & ", " & $x.y & ")"
  5. proc `$`*(x: Foo): string =
  6. "runtime Foo(" & $x.x & ", " & $x.y & ")"