[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print Statement with more than one comma in a row fails


On 5/22/25 7:48 PM, Brian G wrote:
I am not sure if it is a bug or a feature but if I put two commas in a row in a print statement, i get a syntax error.

But i seem to think that a comma is a tab, and in the past you could do:

print "a",,"b"

to get a double tab, Am I wrong in expecting the print statement to perform that correctly?

Same with

print "a";;"b"

which does include two spaced, but

print "a";;;"b"

is a syntax error

I think this worked at some point in the past...

I get a syntax error on all three Print statements with Gambas 3.20.

On Gambas 3.18, I get "Unexpected ','" for the first and "Unexpected ';'" for the third. The second works.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Print Statement with more than one comma in a row failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Print Statement with more than one comma in a row failsBrian G <brian@xxxxxxxxxxxxxxxx>