About the identifier behind the number

Programming language questions
Post Reply
luowy
Posts: 87
Joined: Thu Dec 17, 2015 1:32 pm

About the identifier behind the number

Post 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?
User avatar
Robert
Posts: 177
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: About the identifier behind the number

Post by Robert »

I think it is a bug.

The Language report says:
"Blanks and line breaks ... are essential to separate two consecutive symbols."
Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

Re: About the identifier behind the number

Post by Josef Templ »

I don't think it is a bug because you can also write a+b without white space in between.

- Josef
User avatar
Robert
Posts: 177
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: About the identifier behind the number

Post 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.
Post Reply