mdollar2.nim 146 B

12345678
  1. import mdollar1
  2. proc makeFoo*(x, y: int): Foo =
  3. Foo(x: x, y: y)
  4. proc useFoo*(f: Foo) =
  5. echo "used: ", f # directly calls `foo.$` from scope