Name of variables: an issue
#7
Shocked 
(09-09-2022, 01:25 PM)TDarcos Wrote: Well, there is one possibility, the command

OPTION _UNIQUE
Nope, because some people right now depend on "a$" being different from "a AS UDT" or something like that. The QB64 source code might feature it.

There's no need for it anyway because it has to do with using type sigils, or not using them. If you define a variable without sigil, such as "a AS UDT" then the compiler strictly expects it to be that type always, but would treat "a$", "a&&" and other "variations" of variable called "a" differently. QB64 was purposely designed like that. The "default" mode of Freebasic doesn't really offer the choice, whether or not to have variable name "duplicates". Only for string functions like "STR$()" it could ignore the dollar sign but a string variable might not be allowed to carry any sigil. It should be the same in "lang qb" mode as in QB64.
Reply


Messages In This Thread
Name of variables: an issue - by TempodiBasic - 08-30-2022, 06:12 AM
RE: Name of variables: an issue - by SMcNeill - 08-30-2022, 06:18 AM
RE: Name of variables: an issue - by TempodiBasic - 08-30-2022, 03:01 PM
RE: Name of variables: an issue - by SMcNeill - 08-30-2022, 03:32 PM
RE: Name of variables: an issue - by TempodiBasic - 08-31-2022, 11:47 PM
RE: Name of variables: an issue - by TDarcos - 09-09-2022, 01:25 PM
RE: Name of variables: an issue - by mnrvovrfc - 09-09-2022, 04:19 PM
RE: Name of variables: an issue - by mnrvovrfc - 09-09-2022, 04:33 PM
RE: Name of variables: an issue - by TDarcos - 09-26-2022, 12:52 AM
RE: Name of variables: an issue - by mnrvovrfc - 09-26-2022, 05:13 AM
RE: Name of variables: an issue - by Pete - 09-26-2022, 08:18 PM
RE: Name of variables: an issue - by Petr - 10-01-2022, 07:21 PM



Users browsing this thread: 14 Guest(s)