Re: ffi.gc question

  • From: Coda Highland <chighland@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 12 Aug 2012 20:56:57 -0700

On Sun, Aug 12, 2012 at 2:09 AM, QuentinC <webmaster@xxxxxxxxxxxx> wrote:
> Would it be possible to do so that ffi.gc(cdata) without any 2nd argument
> returns the currently associated finalizer ?

Why overload gc()? Why not just introduce a new accessor? Wouldn't
that be a better API all around?

/s/ Adam

Other related posts: