Re: Tables and Import

2020-07-01 Thread TinBryn
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`

Re: Tables and Import

2020-06-30 Thread snej
Module names seem to be lowercase by convention, and types uppercase.

Re: Tables and Import

2020-06-30 Thread tanguymario
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

Re: Tables and Import

2020-06-30 Thread SolitudeSF
no, you named a module same way as another symbol, and module takes precedence. nothing to do with tables.

Tables and Import

2020-06-30 Thread tanguymario
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

Re: Tables and Import

2020-06-30 Thread SolitudeSF
i think Image is first recognized as module. rename it to lowercase.

Re: Tables and Import

2020-06-30 Thread tanguymario
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 ?