let fns = [
            Treg(name:"foo", `func`:nimfoo),
            Treg(name:"bar", `func`:nimbar)
        ]
     
     register(L, "sllib", unsafeAddr fns[0])
    
    
    Run

this compiles with official Nim's Lua 5.1 package, but from there on you're on 
your own.

Reply via email to