[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaJIT ffi] Misleading error message?
- From: Mike Pall <mikelu-1107@...>
- Date: Sat, 23 Jul 2011 17:02:50 +0200
Xavier Wang wrote:
> Is that difficult to make unresolved function name become nil?
> ffi.C.foobar --> nil
That's not difficult. But there would be no way you could get the
error message then (a table lookup can only return one result).
And you'd have to litter your code with asserts. It makes more
sense to error out here. For a C program you'll get an error when
the static or dynamic linker fails to resolve a symbol, too.
--Mike