Re[2]: ffi.istype() on arrays

  • From: Roman Tsisyk <roman@xxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 02 Jul 2015 12:00:04 +0300




Wednesday, July 1, 2015 10:35 AM -05:00 from Javier Guerra Giraldez
<javier@xxxxxxxxxxx>:

On Wed, Jul 1, 2015 at 10:30 AM, Roman Tsisyk <roman@xxxxxxxxxxxxx> wrote:
Why ffi.istype('char *', ffi.new('char[128]')) is false?


arrays are not pointers

http://www.panix.com/~elflord/cpp/gotchas/index.shtml

http://c-faq.com/~scs/cgi-bin/faqcat.cgi?sec=aryptr

http://www.cplusplus.com/forum/articles/10/

char[] -> char * is valid cast in C.

--
WBR,
Roman Tsisyk <roman@xxxxxxxxxxxxx>
http://tarantool.org/ - an efficient in-memory data store and a Lua
application server

Other related posts: