Lua: Difference between revisions

No edit summary
No edit summary
Line 30: Line 30:


WoW Lua modifies the standard library by removing functions that expose the host filesystem, modifying existing functions, or adding new ones.
WoW Lua modifies the standard library by removing functions that expose the host filesystem, modifying existing functions, or adding new ones.
These functions were removed from the standard library:
* <code>dofile()</code>, <code>loadfile()</code> - Removed to prevent Lua from touching the host filesystem.
* <code>print()</code> - Removed to Lua from touching stdout. This is replaced by a function that prints output to the ingame chat.