Jump to content

Halt and catch fire: Difference between revisions

m
→‎{{header|Lua}}: more explain
m (→‎{{header|Lua}}: added another)
m (→‎{{header|Lua}}: more explain)
Line 226:
 
=={{header|Lua}}==
Tricks could be used to shorten this, particularly in thefrom interactive REPL, where <code>-_</code> would be enough (i.e., attempt to perform arithmetic on a nil global), or from a file <code>_()</code> would be enough (i.e., attempt to call a nil global). This instead focuses on the "be useful elsewhere" aspect of the task, because both seem short-enough as-is:
<lang lua>error(1)</lang>
{{out}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.