Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option _Explicit Keyword(s) of day XXX:
#12
If there were no such thing as QB64, but Freebasic existed until today as actually, many people would give up BASIC programming for good.

What happened to the old days of Fortran in which some variables had types the programmer couldn't choose? Such as "i" being an integer to be used as counter? I don't know for sure but I think 1/3 of single-letter variables were left as one type, another third of a different type and another third... maybe for strings.

Csound is like this too: variables have to start with a specific letter to type them such as "a" for audio vector, "k" for control-rate counter. In front of that add "g" if it's a global variable such as "ga" being an audio vector recognized by all instrument definitions found in the CSD code.

This was reflected somewhat in Win API programming such as "lpzstr" used at first in a variable name to indicate a pointer to a string sequence that ends with ASCII0. C/C++ didn't require it but it was part of the documentation away from MSDN.

I'm using OPTION _EXPLICIT even though I don't have to because I need more excitement in my life. I was supposed to go ahead with my project for a simple music sequencer which employs a pair of text file information and wave data, to set up loop points, amplitude envelopes and stuff like that. Also I haven't forgotten that game using the robot and monster sprites created by JDJ...
Reply


Messages In This Thread
RE: Option _Explicit Keyword(s) of day XXX: - by mnrvovrfc - 06-07-2023, 05:03 PM



Users browsing this thread: 4 Guest(s)