Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB664PE v3.10.0 is now live for X-Mas!!
#44
I am a bit surprised by the rant on not reading the documentation in this case...
This is not about knowing/understanding that 32bit color-values are unsigned long and should be assigned to variables declared _Unsigned Long or with ~& type-specifier. I think this is common practice in most code.

This has to do with a (undocumented) change in behavior of Const. Also the wiki shows examples where Const is used without type-specifier behind the value like on the Const wiki page itself Const PI = 3.14159 instead of  Const PI = 3.14159# which shows that for Const declarations it is less common to do that and also the wiki does not give clear directions that you should.
Most examples in the wiki that contain Const do not show type-modifiers behind the value.

But apart from that, Const is now acting different from what it has done for years.
45y and 2M lines of MBASIC>BASICA>QBASIC>QBX>QB64 experience
Reply


Messages In This Thread
RE: QB664PE v3.10.0 is now live for X-Mas!! - by mdijkens - 12-29-2023, 09:25 AM



Users browsing this thread: 6 Guest(s)