generic types can be used like type classes. distinct can be applied to type classes.

This commit is contained in:
Zahary Karadjov 2012-03-25 20:55:21 +03:00
commit bc2eb0ea9b
11 changed files with 147 additions and 79 deletions

View file

@ -219,3 +219,6 @@ proc binaryStrSearch*(x: openarray[string], y: string): int =
return mid
result = - 1
# Can we keep this? I'm using it all the time
template nimdbg*: expr = c.filename.endsWith"nimdbg.nim"