I guess it is a compiler bug.
    
    
    proc genHashResultAllZeroConst: HashLine =
      for i in mitems(result):
        i.v = InvalidScore
        echo i.v
      echo result.repr
    
    const
      HashResultAllZero = genHashResultAllZeroConst()
    

does show low(int16) on the echo in the loop but the echo afterwards shows an 
empty array. This behavior changes if `HashResultAllZero` is changed from const 
to let. So `mitems()` does not seem to really work here.

Reply via email to