Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proc register*[T](univ: Univ, compsPerPage: static[int], newProc: proc (owner: Elem): T, regProc: proc (univ: Univ) = nil) =
- #...
- register[TimestepMgr, 1](app, newTimestepMgr) # errors
- register[TimestepMgr](app, 1, newTimestepMgr) #errors
- register[TimestepMgr, 1](app, 1, newTimestepMgr) # doesn't error (?!)
Advertisement
Add Comment
Please, Sign In to add comment