type
TIntArray = array[0..5, int] # an array that is indexed with 0..5
It throws following error:
Error: ambiguous identifier: 'array' -- use a qualifier
Following is the nimrod version that I am using on Windows:
Nimrod Compiler Version 0.9.4 (2014-04-21) [Windows: i386]
That's definitely which require a fix. Or at least the error message must be more expressive as temporary solution.
Are there other reserved words which should not be used for file names?
There's no reserved words, that cannot be used as module names. In this code you just hide system module's array identifier by name of your module. Both identifiers (type and your module) can still be used with disambiguation:
array.nim:
type
TIntArray = system.array[0..5, int]
var
a: array.TIntArray
or so
type.nim:
type
TIntArray = array[0..5, int]
var
a: `type`.TIntArray
Here's no other error besides ambiguity, so is the error message. The best would be, if the message were more exhaustive, like: ..
Error: ambiguous identifier: 'array' (type System.array and module array) -- use a qualifier