No, arrays can use enums as the index type (and I use this feature all the 
time):
    
    
    type country = enum
      ITALY,
      GERMANY,
      PORTUGAL
    
    var capital: array[country, string] = ["Rome", "Berlin", "Lisbon"]
    
    echo capital[ITALY]
    

Reply via email to