Hi, I don't know if I expressed my issue correctly but it's easier to 
understand it with code. In nim you can overload every generic proc pretty 
easily, it picks the most specific overload. Think of the `$` operator. But how 
do I know users have actually overloaded `$`? This is what it looks like:
    
    
    proc foo[T](x: T) =
      when defined(`$` for T): # call $x
      else: # do something else instead of calling generic `$`
    
    
    Run

I think the only option is requiring the user to define a `template hasDollar: 
bool = true` ?

Reply via email to