Shoulda called it:
Sorry, you are probably not in mood for jokes... it is weird bug, works fine if it were just a number.
Aye, and it’s one I even knew about, and was warning Qwerty about the other day. (At least I think it was him. With my memory, it might’ve been all just a dream...).
Qwerty was wanting a way to pass variables to subs, by reference, and had discovered that wrapping them in parentheses worked. I warned him, “not in all cases”, but I couldn’t remember those chases where it failed...
... And now, a few weeks later, I make a silly, distracted typo, and get this mess. My first thought was, “Oh shit! What have I broken in QB64, pushing the changes to ZLIB and the console into the language?!”
An hour of debugging later, I can’t fathom
anything that I’d altered which might cause the glitch...
Another hour of deconstructing code a line at a time, finally let’s me zero in on the lines that generated it... Still though, my eyes didn’t pick up on that extra set of parentheses, and the IDE happily says, “OK”...
So I dig back into the QB64 source to hunt for the root of the issue...
Another hour or so...
Screw it! I’m off for lunch!!
....Come back and it’s OBVIOUS to me now, that I have extra brackets around that array...
...And I slap myself hard upside the head and cuss so loudly, it sends my dog into a barking fit to warn off the danger.
/sigh
Some days, I wonder why I ever even bothered to learn programming. “Joys of programming, my ass!”