@cdome, there is simple way to ensure that your type conforms to a concept. 
After defining the type and all its procs, put a static assert near the end of 
the module:
    
    
    static:
      assert Foo is SomeConcept
    
    Run

Future versions of Nim will produce a nice error message describing which 
concept requirement wasn't satisfied.

Reply via email to