summary refs log tree commit diff stats
path: root/tests/run/tmemoization.nim
Commit message (Collapse)AuthorAgeFilesLines
* further improvements for term rewriting macrosAraq2012-09-041-1/+1
|
* typedesc and expr paramsZahary Karadjov2012-03-311-0/+17
types are now valid proc/template/macro params and you can overload over them: proc foo(T: typedesc) # accept any type proc foo(T: typedesc{int}) # overload specifically for int proc foo(T: typedesc{int or float or Callable}) # overload for any type matching the constraints expr{type} is a param expecting compile time value of the designated type (or type class). when typedesc or expr params are used with a proc, the proc will be instantiated once for each unique type/value used as parameter.