Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリに Lua を組み込みましたが、標準ライブラリをロードしていません。テーブルがないことを確認しましたが_G、いくつかのグローバル変数を設定できました。これはどのように可能ですか?
_G
Lua 内にはまだグローバルのテーブルがあります。変数として表示されないだけです。
ライブラリをロードするpackageと、グローバルのテーブルは Lua 経由でアクセスできますpackage.loaded._G。
package
package.loaded._G