Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ufo
11 months ago
|
parent
|
context
|
favorite
| on:
The evolution of Lua, continued [pdf]
Naturally, the main catch is that this only detects the violation at run-time. It also won't stop you from accidentally overwriting a global variable that already exists.
nmz
11 months ago
|
next
[–]
> It also won't stop you from accidentally overwriting a global variable that already exists.
That's also solvable using metatables.
Dylan16807
11 months ago
|
prev
[–]
Do the declarations in 5.5 prevent overwriting? That sounds tricky to define and implement.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: