Following code:
import limdb
type Foo = object
a: string
let db = initDatabase("db", (int, Foo))
db[1] = Foo(a: "a")
echo db[1]
runs without error.
But in next run (without resetting value) when you try read db[1] program crashes with SIGSEGV.
Some remarks:
Foo.a is empty string works;
string and seq[string] as db value works.
Also for Foo as key there is another error. It doesn't compile because there are no compare procedure for string, string.
Nim version 1.6.12 and devel, no matter of --mm is refc or arc/orc.
Following code:
runs without error.
But in next run (without resetting value) when you try read
db[1]program crashes with SIGSEGV.Some remarks:
Foo.ais empty string works;stringandseq[string]as db value works.Also for
Fooas key there is another error. It doesn't compile because there are nocompareprocedure forstring, string.Nim version 1.6.12 and devel, no matter of
--mmis refc or arc/orc.