Guest User

Untitled

a guest
Sep 4th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.31 KB | None | 0 0
  1. proc register*[T](univ: Univ, compsPerPage: static[int], newProc: proc (owner: Elem): T, regProc: proc (univ: Univ) = nil) =
  2.   #...
  3.  
  4. register[TimestepMgr, 1](app, newTimestepMgr) # errors
  5. register[TimestepMgr](app, 1, newTimestepMgr) #errors
  6. register[TimestepMgr, 1](app, 1, newTimestepMgr) # doesn't error (?!)
Advertisement
Add Comment
Please, Sign In to add comment