working with example on page 14 of tut1.pdf.
here is the code,
var x : int32 = 1.int32
var y : int8 = int8 ('a')
var z : float = 2.5
var sum : int = int (x) + int (y) + int (z)
echo sum
on compiling the following errror is seen
$ nim compile int.nim
Hint: used config file '/home/strikr/source-nim/nim/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: int [Processing]
int.nim(4, 22) Warning: a [b] will be parsed as command syntax; spacing is deprecated [Deprecated]
int.nim(8, 21) Warning: a [b] will be parsed as command syntax; spacing is deprecated [Deprecated]
int.nim(8, 31) Warning: a [b] will be parsed as command syntax; spacing is deprecated [Deprecated]
int.nim(8, 41) Warning: a [b] will be parsed as command syntax; spacing is deprecated [Deprecated]
int.nim(8, 11) Error: Error: ambiguous identifier: 'int' --use system.int or unknown.int
the version of nim used is
$ nim --version
Nim Compiler Version 0.16.0 (2017-01-24) [Linux: amd64]
Copyright (c) 2006-2017 by Andreas Rumpf
git hash: 0ead17bf0ecb12e32f64c050f8d28f6c22a59adb
active boot switches: -d:release
what is missing in one's understanding about 'int' data type in nim ?
what does the compiler mean by '--use system.int or unknown.int' ?
the compiler doesn't accept it as an option.
Is this to be specified as an option ? where ?
Ohh ...
files shouldn't be named with any datatype i suppose !