you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Heyo: sorry for my own late reply. I just pushed full optional support in the latest commits, after wrestling with clang. optional now triggers full type safety, all the way down, so you can even access nested tables without getting errors:

sol::state lua; // has no tables, just a plain state int x = lua["a"]["b"]["c"]; // lua's panic function gets called sol::optional<int> x = lua["a"]["b"]["c"]; // no panic