Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple 2D vector graphics
#16
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.
Reply


Messages In This Thread
simple 2D vector graphics - by madscijr - 10-27-2022, 07:45 PM
RE: simple 2D vector graphics - by bplus - 10-27-2022, 08:02 PM
RE: simple 2D vector graphics - by madscijr - 10-27-2022, 11:11 PM
RE: simple 2D vector graphics - by Pete - 10-27-2022, 10:03 PM
RE: simple 2D vector graphics - by madscijr - 10-27-2022, 11:14 PM
RE: simple 2D vector graphics - by mnrvovrfc - 10-27-2022, 11:33 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 01:59 AM
RE: simple 2D vector graphics - by Pete - 10-27-2022, 11:38 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 02:02 AM
RE: simple 2D vector graphics - by vince - 10-28-2022, 02:15 AM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 03:48 AM
RE: simple 2D vector graphics - by bplus - 10-28-2022, 05:32 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 06:58 PM
RE: simple 2D vector graphics - by bplus - 10-28-2022, 09:26 PM
RE: simple 2D vector graphics - by madscijr - 10-28-2022, 09:50 PM
RE: simple 2D vector graphics - by mnrvovrfc - 11-04-2022, 11:59 PM
RE: simple 2D vector graphics - by madscijr - 11-05-2022, 02:09 AM
RE: simple 2D vector graphics - by TempodiBasic - 11-08-2022, 10:17 AM
RE: simple 2D vector graphics - by madscijr - 11-08-2022, 12:25 PM



Users browsing this thread: 27 Guest(s)