I have a function with the following signature:
    
    
    proc newCurveLoop*( curves:seq[Curve]; tag:int = -1 ):Loop
    
    Run

On the other hand I have:
    
    
    Curve* = ref object of Tag
    
    Line* = ref object of Curve
      ini*, fin*:Point
    
    Run

The type safety makes seq[Curve] is different to seq[Line].

Is there a way to make it accept all the instances inheriting from Curve?

Reply via email to