Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. WishUnderflow

WishUnderflow

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
41 Posts 35 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dumhuvud@programming.devD [email protected]

    Yeah, but what if the counter gets decremented before the wish gets granted, huh?

    S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote on last edited by [email protected]
    #41

    You have 3 wishes.

    First wish: I wish my last wish would count as me consuming two wishes.
    Second wish: I wish to have 0 wishes remaining.

    First wish puts you down one wish, so ending at 2.
    Second wish removes one wish, so at one, then wish happens putting you at 0,

    then because this second wish now becomes your last, as you have 0 remaining, the first wish then takes effect and consumes another wish, putting you to - 1 and overflowing.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups