I'm newbie T_T, I just think converters tend to breed a lot of errors so that's 
why I try to use the converter as little as possible ... Maybe T_T
    
    
    # xxx.nim
    ...
    converter nb(n: int): bool = n != 0
    
    # myapp.nim
    import xxx
    
    var
      x, x2: int
      b, b2, b3: int
      ...
    while (not (x and x2)) and ((b and b2) or not b3):
      ... # `and, or, not` can use for SomeInterger|char|bool ...
    
    
    Run

Reply via email to