A person who was already dead? You’d have the defense of “necessity.” That means that what you did (abuse of a corpse) wasn’t as bad as what would have happened if you didn’t do it (your death.)
A person you killed? You’re going to prison. Necessity cannot be a defense for murder.
Try to starve slower than the other guy.
Latest Answers