Re: ffi.cdef()

  • From: demetri <demetri.spanos@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 20 Jul 2012 03:57:34 -0700

> >>I'm not 100% sure I understand your question, but as you can see from
> the example above the cdef call loads the symbol into the ffi.C namespace
> regardless of the invoking function's scope/environment
> You won't be polluting the global namespace with functions you don't
> actually call, which might be a lot if you pull in a truckload of bindings?

Ah, yes. This is a sensible interpretation that I missed. Good point.

Other related posts: