Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Name of variables: an issue
#3
(08-30-2022, 06:18 AM)SMcNeill Wrote: Variable + Suffix is basically an unique being, non dependent on other definitions.

DIM x AS LONG

x! = 2.2
x$ = "foo"
x%% = 3
x~&& = 1234567890987654
x = 1234

All the above are valid and unique variables.

Hi Steve
yes you're right but please try to copy and paste  this following code into the QB64 IDE

Code: (Select All)
Type XXX
    a As Integer
    b As Long
    S As String * 1
End Type

DefInt X-Z

Dim Shared Xpos As XXX

Dim Xpos(1 To 12)

Dim Xpos&

Dim Xpos as long

and please  tell me what do you think about this behaviour of parser:
DIM Xpos& doesn't trigger a name already used error, but DIM Xpos AS LONG does it!
So I must think that Xpos& and Xpos AS LONG are 2 different LONG variables, isn't it?
Thanks for feedback!
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: 2 Guest(s)