Halt and catch fire: Difference between revisions

Content added Content deleted
(Moved the Algols to the right place.)
(→‎{{header|Raku}}: Added Raku (non-)solution)
Line 33: Line 33:
This won't halt the CPU but the program will crash immediately on startup.
This won't halt the CPU but the program will crash immediately on startup.
<lang algolw>assert false.</lang>
<lang algolw>assert false.</lang>

=={{header|Raku}}==
<lang perl6>++8</lang>
Syntactically: Valid.

Semantically: Change the mathematical concept of 8 to 9, either in your whole computer, or maybe the whole universe.

Fails with this run-time error:
{{out}}
<pre>Cannot resolve caller prefix:<++>(Int:D); the following candidates
match the type but require mutable arguments:
(Mu:D $a is rw)
(Int:D $a is rw --> Int:D)

The following do not match for other reasons:
(Bool $a is rw)
(Mu:U $a is rw)
(Num:D $a is rw)
(Num:U $a is rw)
(int $a is rw --> int)
(num $a is rw --> num)
in block <unit> at -e line 1</pre>


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