parent
fc5dd11b3d
commit
4fb7f076d8
1 changed files with 2 additions and 6 deletions
|
|
@ -99,10 +99,6 @@ proc repr*[T: tuple|object](x: T): string =
|
|||
result = $typeof(x)
|
||||
reprObject(result, x)
|
||||
|
||||
proc repr*[T](x: ptr T): string =
|
||||
result.add repr(pointer(x)) & " "
|
||||
result.add repr(x[])
|
||||
|
||||
proc repr*[T](x: ref T | ptr T): string =
|
||||
if isNil(x): return "nil"
|
||||
result = $typeof(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue