Re: FFI metatype override field names

  • From: Mike Pall <mike-1206@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 12 Jun 2012 16:15:00 +0200

Richard Hundt wrote:
> is this considered a NYI (from http://luajit.org/ext_ffi_api.html)?
> 
> "Note that pre-defined operations on types have precedence (e.g.
> declared field names cannot be overridden)."
> 
> I have a case where I'd like to have override semantics there.
> Not planned, or just low prio?

I don't plan to allow overriding of the pre-defined semantics.
That would necessitate the introduction of lots of rawget()-style
methods to undo each kind of override.

--Mike

Other related posts: