Halt and catch fire: Difference between revisions

Content added Content deleted
(→‎{{header|Raku}}: Alternate, perhaps more community condoned method.)
Line 139: Line 139:
(num $a is rw --> num)
(num $a is rw --> num)
in block <unit> at -e line 1</pre>
in block <unit> at -e line 1</pre>

Alternately, and perhaps more community condoned, to end the program as soon as possible without trying to change the Laws of the Universe, you could just enter:
<lang perl6>die</lang>
{{out|In REPL}}
<pre>Died
in block <unit> at <unknown file> line 1</pre>
Same character count, exits the program as soon as possible (though trappable if desired through the exception system,) and it looks more like an intentional act rather than a typo. Plus, you can add a message that will be added ''when'' it dies to explain why.


=={{header|REXX}}==
=={{header|REXX}}==