I've been doing some testing with get_or(), it seems ideal for my use case but so far it seems to fail to recognise the existing Lua table by the same name and instead chooses to create a new one overwriting the existing one. I would like to use this syntax if possible since I can't use the [ ] style in my use case
I'm assuming this function is meant to get an existing table if it exists, so I wanted to check if this is a bug or if I'm using it incorrectly
Example just for demonstration
Using Visual Studio 2022, Lua 5.4.4
I've been doing some testing with get_or(), it seems ideal for my use case but so far it seems to fail to recognise the existing Lua table by the same name and instead chooses to create a new one overwriting the existing one. I would like to use this syntax if possible since I can't use the [ ] style in my use case I'm assuming this function is meant to get an existing table if it exists, so I wanted to check if this is a bug or if I'm using it incorrectly
Example just for demonstration Using Visual Studio 2022, Lua 5.4.4