Wierd behaviour with table

2022-05-07 Thread foderking
Thanks. import tables works

Wierd behaviour with table

2022-05-07 Thread Yardanico
The reason is that your b.nim module doesn't have access to the std/tables module, so it can't use the Table APIs. There are two ways to fix this: 1. Add `export tables` to your a.nim 2. Add `import std/tables` to b.nim

Wierd behaviour with table

2022-05-07 Thread aEverr
you have to also `import tables` inside module b

Wierd behaviour with table

2022-05-07 Thread huantian
Did you import tables in the second file as well?

Wierd behaviour with table

2022-05-07 Thread foderking
I have a table in a separate file `a.nim` import std/tables let lookupTestTable* = { "A1": """ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0"