Undefined variables returning nil
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Undefined variables returning nil
- From: William Sumner <prestonsumner@...>
- Date: 2013年3月19日 14:23:49 -0600
Lua's behavior of silently returning nil for undefined variables can lead to bugs that propagate undetected. Has thought been given to changing this in a major version update, or are there reasons for retaining this behavior? I'm aware of strict.lua, but it only provides safety for global/module scope.
Preston