"With variants, you have to know and handle all the possible classes at every 
"method" implementation." except you don't, you can just do 
    
    
    case myobj.kind
    of MyKind:
      # do stuff...
    else:
      discard
    
    
    Run

Reply via email to