Re: example of C types as a substitute for standard Lua types, without using any C function

  • From: Mike Pall <mike-1208@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 7 Aug 2012 13:38:47 +0200

Robert G. Jakabosky wrote:
> Examples like those would be good to add to the Wiki:

Well, not this one. Scalar FFI types should not be used as a
replacement for numbers. A 'for' loop over an integer range is
specialized to integers -- no need for FFI trickery.

--Mike

Other related posts: