(04-30-2022, 05:08 AM)SMcNeill Wrote: Not quite. It's:
Code: (Select All)DIM AS DOUBLE A, B, C
DIM AS INTEGER X, Y, Z
DIM AS <TYPE> then the variable names.
Here, a quick little reference for the differences, written up and shared in our Learning Resources area. https://staging.qb64phoenix.com/showthread.php?tid=279
I hope that helps clear up any confusion anyone may have had with the new syntax.
It's quite right what you write, Steve,
but QB64 also accepts my version of DIM:
Code: (Select All)
'DIM test
OPTION _EXPLICIT
DIM a, b, c AS INTEGER
DIM x, y, z AS DOUBLE
a = 1: b = 1: c = 1
x = 1.234
y = 1.234
z = 1.234
PRINT a + b + c
PRINT x + y + z
QB64 compiles this without any problems!
... but only c is explicit declared as integer and only z as double... I understand.