So the alternative I mentioned doesn't work either?
    
    
    const is_it_for_algo_N {.intdefine.} = 1
    
    when is_it_for_algo_N == 1:
      type Foo = object
        val: int
    elif is_it_for_algo_N == 2:
      type Foo = object
        val: string
    
    
    Run

Reply via email to