Koenig's lookup implementation

This commit is contained in:
Araq 2011-04-03 21:32:55 +02:00
commit 94f4256811
5 changed files with 137 additions and 131 deletions

View file

@ -9,8 +9,8 @@ type
TMyObj = object
x, y: int
proc `$`*(a: TMyObj): bool =
result = "x: " & a.x & " y: " & a.y
proc `$`*(a: TMyObj): string =
result = "x: " & $a.x & " y: " & $a.y
var a: TMyObj
echo toString(a)