You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the codes in godbolt and the first code does not throw at all.
The second code throws. lua: error: stack index -1, expected table, received nil: value is not a table or a userdata that can behave like one (type check failed in constructor)
GCC 10.1, Lua 5.3.5, Sol 3.2.1
So sounds like both codes may work differently in different environments.
Or maybe just different sol or lua versions handle the cases differently,
My IDE: Microsoft Visual Studio Community 2022 v17.4.5
The code 1:
The code 2:
The text was updated successfully, but these errors were encountered: