jeremyong / Selene

Simple C++11 friendly header-only bindings to Lua
zlib License
813 stars 117 forks source link

Is it possible to check if a sel::Selector is nil? #181

Closed arnavb closed 6 years ago

arnavb commented 6 years ago

I like the usage of this library so far, but one thing that bothers me is that there isn't a way to check if a sel::Selector is nil, or i.e doesn't exist. Is it possible for a member function bool sel::Selector::IsNil() (like LuaBridge does) which would make it easier to determine if an element exists or not? I feel this would be very useful.

arnavb commented 6 years ago

Never mind, found the exists() function in the source code for Selector.h, which has the function I want.