Page 1 of 1

About the identifier behind the number

Posted: Wed Jul 22, 2020 8:04 am
by luowy
I accidentally wrote the following code:

Code: Select all

name: ARRAY 256OF CHAR;
It passed the compiler!Although the formatter can formats it into a standard form

Code: Select all

name: ARRAY 256 OF CHAR;
I'm not sure it is a bug, What do you think?

Re: About the identifier behind the number

Posted: Wed Jul 22, 2020 8:18 am
by Robert
I think it is a bug.

The Language report says:
"Blanks and line breaks ... are essential to separate two consecutive symbols."

Re: About the identifier behind the number

Posted: Wed Jul 22, 2020 10:49 am
by Josef Templ
I don't think it is a bug because you can also write a+b without white space in between.

- Josef

Re: About the identifier behind the number

Posted: Wed Jul 22, 2020 11:20 am
by Robert
Josef Templ wrote:I don't think it is a bug because you can also write a+b without white space in between.

- Josef
TRUE.