I think that the change makes 'Dim' simpler to use. My only niggling concern would be, are the changes being made to make QB64 more efficient or to make QB64 more like FreeBasic? Just a thought...
Pete,
If, I had been aware of your dislike of FreeBasic, I would not have used the word FreeBasic... lol (I'm not a fan of FreeBasic either...)
@Fellippe
It sounds fine to me but i'd much rather see type definitions that support arrays and have the broken linking to external libraries issue sorted out before you go adding features that do nothing for the languages capabilities. Also, if your thinking about adding stuff, are enumeratioun blocks possible!
Unseen
P.s. FB Sucks!
Unseen, I understand your beef. But not implementing this won't make me automatically know how to implement your long awaited features, which are beyond my abilities.
I intensely dislike the parenthesisation approach for some reason.
The DIM AS INTEGER X, Y, Z is fine. Parser-wise it should just checking if the second element is AS, then copying the code that does the list parsing.
PS: Pete was my worst fear and who I'd see ever getting outraged :-D - this thread was started with mostly you in mind.
I intensely dislike the parenthesisation approach for some reason.
The DIM AS INTEGER X, Y, Z is fine. Parser-wise it should just checking if the second element is AS, then copying the code that does the list parsing.
I have multiple lines of DIM in many of my programs, so this idea sounds really useful to me. I was going to put that sentence in parentheses, but now I hesitate!What Fellippe said, though people who put too much on one line tend to have something to hide (especially those who use colons...).
FUNCTION f(AS INTEGER a, b, c)
is c integer or single?FUNCTION f((a, b) AS INTEGER, c)
but I still think this looks like some kind of compound object/type.TYPE t
AS INTEGER a, b, c
END TYPE
You can't have this in function signatures because the comma becomes ambiguous:Code: [Select]FUNCTION f(AS INTEGER a, b, c)
is c integer or single?
Code: QB64: [Select]
I believe the above would be valid.