Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.11.0 Released!
#16
(01-07-2024, 06:14 PM)RhoSigma Wrote:
(01-07-2024, 05:44 PM)bplus Wrote: does _rgb32 ever return a negative?

does Point(x, y) ever return a negative?

I never use &H except for colors therefore I am NOW OFFICIALLY CLAMMERING for _Unsigned Long to be consistent with colors.

I have said before and will say again if you want neg values use -&H, -&B, -&O just exactly like we do with decimal bases. Be consistent!

You just talked me out of updating to 3.11 because you say you are Not using _Unsigned as default for the other bases.

Switching back and forth from _unsigned to NOT really sucks!

When in doubt be consistent, handle other number bases just like we do decimal.

Well this all adds to the argument to get away from using Const all together but then others are arguing for getting way from SHARED variables all together. (That one I really disagree!)
But there are those who say we are too comfortable in our lifestyles already, that it is good to live outside the comfort zone. ; - ) )

I can live with typing Const with a suffix, I only have to do it once.

Using -&H etc. isn't bulletproof either, a%=-&HFFFF, so what is it? To be absolutely correct following your logic it must be 1, as &HFFFF seen as a INTEGER (16bit) is already -1 (cause the MSB is set) and the minus sign would negate that value. So -&HFFFF = 1 ??? That's odd, even it's true.

That's bcause you are sticking to old bit paradigm. Sure be consistence to old computer bit math but in Real math FFFF base 16 is the big number and gets bigger with every F you add onto it. You could only make it negative by putting a - sign to it.

Can you imagine doing that with decimal math? It would be confusing as hell 9999 = -1 ha!
b = b + ...
Reply


Messages In This Thread
QB64 Phoenix Edition v3.11.0 Released! - by a740g - 01-03-2024, 05:45 PM
RE: QB64 Phoenix Edition v3.11.0 Released! - by bplus - 01-07-2024, 06:22 PM



Users browsing this thread: 5 Guest(s)