Skip to main content
gamedev.net
🔒 Locked

[Lua] Retrieving global table reference

Started by Billr17 1 reply 1.8k views
Original Post
Billr17
Billr17
Is there a way that I get a reference to the global table (in Lua). I would like to iterate over the table and print out its contents for debugging purposes. I suspect that the local keyword was forgotten somewhere and would like to verify which variables are being accidentally created globally. -Bill
Sneftel
Sneftel
_G.
Billr17
Billr17
Quote:
Original post by Sneftel
_G.


Perfect, thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.