lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Aug 20, 2016 at 8:53 PM, ThePhD <jm3689@columbia.edu> wrote:
[...] 
how I might manage pointers that get turned into `nil` in an array of pointers from C++

That. Don't do that. Use something other than Lua `nil` to represent C++ NULL. If you want something unique, then

NULL = {}

is a good choice. NULL won't create a hole in a sequence.

NULL represents a pointer to nothing.

nil is nothing itself.

e