diff options
author | Araq <rumpf_a@web.de> | 2013-02-22 00:48:24 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-02-22 00:48:24 +0100 |
commit | d1d20e5760d66cace75c8a413376d2de5c944f4e (patch) | |
tree | 0e47a50a95a97c39ba8d47cfb0256698c3fee097 /lib | |
parent | 3c8a80eeb2fd09481315514fda7ba85f417ac13d (diff) | |
parent | f1d5e8479b479cb58fd8bec5fffee84bb66af6dc (diff) | |
download | Nim-d1d20e5760d66cace75c8a413376d2de5c944f4e.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 5f9a24ba9..db78d2740 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -1532,7 +1532,7 @@ iterator fieldPairs*[S: tuple|object, T: tuple|object](x: S, y: T): tuple[ ## The current implementation also has a bug that affects symbol binding ## in the loop body. -proc `==`*[T: tuple](x, y: T): bool = +proc `==`*[T: tuple|object](x, y: T): bool = ## generic ``==`` operator for tuples that is lifted from the components ## of `x` and `y`. for a, b in fields(x, y): @@ -1557,7 +1557,7 @@ proc `<`*[T: tuple](x, y: T): bool = if c > 0: return false return false -proc `$`*[T: tuple](x: T): string = +proc `$`*[T: tuple|object](x: T): string = ## generic ``$`` operator for tuples that is lifted from the components ## of `x`. Example: ## |