From eb72857ea229aa1a65f9dc0962840ede2a9e68ed Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 31 Oct 2013 22:30:59 +0100 Subject: [PATCH] added $ for oids --- lib/pure/oids.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/pure/oids.nim b/lib/pure/oids.nim index 0fd1d8cd25..fbe0dda958 100644 --- a/lib/pure/oids.nim +++ b/lib/pure/oids.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2012 Andreas Rumpf +# (c) Copyright 2013 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -52,6 +52,10 @@ proc oidToString*(oid: TOid, str: cstring) = inc(i) str[24] = '\0' +proc `$`*(oid: TOid): string = + result = newString(25) + oidToString(oid, result) + var incr: int fuzz: int32