I think try to make module names plural by convention as well, in the standard
library the module containing `Table` is `tables`.
I would name the module `images`
Module names seem to be lowercase by convention, and types uppercase.
Ok, I also tried replacing this line:
var imgTable: Table[string, Image]
Run
by this one:
var imgTable: Table[string, Image.Image]
Run
And it still gives the same error.
Anyway I will change the module names
no, you named a module same way as another symbol, and module takes precedence.
nothing to do with tables.
Hello,
I am doing a simple test with tables and have problems using import.
I have a file Image.nim:
type
Image* = ref object of RootObj
filepath*: string
Run
And a main file:
import tables
import Image
var imgTable: Table
i think Image is first recognized as module. rename it to lowercase.
Yes it works that way, thanks!
But it is strange the type can be created but cannot be recognized in as the
Table value type, isn't it ?