Well, your issue is really simple - you forgot to bind rightSize in the 
template :) Don't forget that templates are simple code substitution, with this 
template it works: 
    
    
    template rightSize(cap): untyped {.dirty.} =
      when (NimMajor,NimMinor)<(1,4):
        bind rightSize
        tables.rightSize(cap)
      else:
        cap
    
    
    Run

Reply via email to