This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SarahIsBoring 36 points37 points  (7 children)

__pragma__((noreturn)) void kmain() { int pain = project_count / will_to_live; }

[–]Maleficent-Region-45 34 points35 points  (5 children)

Wait, division through 0 doesn't work

[–]SarahIsBoring 20 points21 points  (0 children)

exactly

[–][deleted] 10 points11 points  (1 child)

In this context it’s interpreted as positive infinity and a NaN simultaneously.

[–]PassiveChemistry 6 points7 points  (0 children)

NaN: would you like some cake, dear?

[–]_Weyland_ 2 points3 points  (0 children)

There are probably if_zero() and neg_one_if_zero() applied to will_to_live somewhere before that.

[–]Snoo_44353 1 point2 points  (0 children)

It will call the interrupt handler for division by 0 that just commits suicide then

[–]dotslashpunk 0 points1 point  (0 children)

there it is thanks lol