Thanks for the help Araq.

The Nim enum behaves differently so I think this code reproduces better the Cpp 
code behaviour.
    
    
    const
      ITALY = 0
      GERMANY = 1
      PORTUGAL = 2
    
    var capital: array = ["Rome", "Berlin", "Lisbon"]
    
    echo capital[PORTUGAL]
    

Sorry for these snippets full of unused variables 

Reply via email to