BadLimit
#6
This caused someone to scream, "Oh noes so QB64 is buggy? Should have returned out-of-range runtime error!" The mentality of using QuickBASIC or QBasic set them like that because there was no such thing as "_UNSIGNED"; actually that "keyword" is a hint to the C++ compiler. A hint that could bite very hard if the programmer expected a negative value for some reason but was surprised by a positive value which was the result of wrap-around. Only to guard against that, this "BadLimit" is a good idea.
Reply


Messages In This Thread
BadLimit - by SMcNeill - 12-16-2022, 03:50 AM
RE: BadLimit - by mnrvovrfc - 12-16-2022, 11:01 AM
RE: BadLimit - by SMcNeill - 12-16-2022, 12:03 PM
RE: BadLimit - by SpriggsySpriggs - 12-21-2022, 02:53 PM
RE: BadLimit - by SMcNeill - 12-21-2022, 03:20 PM
RE: BadLimit - by mnrvovrfc - 12-21-2022, 03:53 PM
RE: BadLimit - by SpriggsySpriggs - 12-21-2022, 04:06 PM
RE: BadLimit - by SpriggsySpriggs - 12-21-2022, 04:25 PM
RE: BadLimit - by SMcNeill - 12-29-2022, 10:40 AM
RE: BadLimit - by MrCreemy - 12-29-2022, 06:31 PM



Users browsing this thread: 4 Guest(s)