Halt and catch fire: Difference between revisions
J
(Applesoft BASIC) |
(J) |
||
Line 237:
An alternative to the following is to use ''undefined''.
<lang haskell>main = error "Instant crash"</lang>
=={{header|J}}==
<lang J> (1e6$a.) memw (mema 1),0 1e6</lang>
In other words: allocate one byte of memory and write 1e6 bytes starting at that address.
It's probably more effective to use <lang J> exit 0</lang>
=={{header|Julia}}==
|