You may have three wishes.
- I wish that wish counts were represented as unsigned 64-bit integers.
- I wish that no underflow checks were performed on wish counts.
- I wish to have three fewer wishes.
@alexbuzzbee So you have zero wishes? Or 2^64-3 if the genie counts the already used ones.
@mdhughes Depending on sequencing, either two or three wishes have been expended (I asked to have fewer wishes, not that I had begun with fewer wishes). So I have either 1 or 0 wishes left. 1-3 = -2 = 2^64-2, 0-3 = -3 = 2^64-3.
@alexbuzzbee This is why Djinn were so limited in D&D. No mathematical trickery.
@mdhughes Because D&D players are *exactly* the type of people who would find a working way to get an unlimited amount of wishes by manipulating some quirk like this.
@alexbuzzbee Perfect! 😁
@alexbuzzbee Why not unsigned 2⁶⁴-bit integers?
@wizzwizz4 Out of memory
@alexbuzzbee Ah. Yes, that could be a concern.
Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.