11-05-2022, 02:09 AM
(11-04-2022, 11:59 PM)mnrvovrfc Wrote: If the function doesn't have to do a really expensive calculation, then calling it in a 64-bit operating system wouldn't be as pensive as doing it under MS-DOS. Try checking out one of the last "Steve mods" for QB64 v0.954 SDL, with its impressive building on "CONST". I only wanted to go as far as:
Code: (Select All)CONST QU$ = CHR$(34)
CONST PIE = ATN(1) * 4
CONST DEADBEEF2 = &HDEADBEEFDEADBEEF
Also be glad we don't have to go even further decorating constants like must be done in C, because the C compiler could generate silly warnings because the programmer didn't type-cast something or didn't put "UL" or alike at the end of a number phrase.
Another thing is the mind-boggling C++ code that QB64PE generates only to initialize some variable. It does not rely on the preprocessor for anything, not even for something declared "CONST" in BASIC code.
Wow... I am glad! LoL
As long as it's easy and works and is compatible with most people use, so that it runs out of the box, I'm happy!
I mean, look at the code for the game I just posted, it's got "rapid application development" written all over it! I mean, I try not to make too much spaghetti code, but I like getting something working fast. C just does not fit that mindset.