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

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:

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 ?

Re: OOP question

2020-04-11 Thread tanguymario
Thank you very much!

OOP question

2020-04-10 Thread tanguymario
Hello, I am quite new to nim language and started to develop a graphic app in web (using canvas / webgl). I know nim is not OOP based but I still tried to achieve OOP using 'method'. But when I use two arguments using 'method' it does not work.. Am I wrong ? Or would there be better ways to