08-30-2022, 03:01 PM
(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!