About the identifier behind the number

Programming language questions

About the identifier behind the number

Postby luowy » Wed Jul 22, 2020 8:04 am

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?
luowy
 
Posts: 68
Joined: Thu Dec 17, 2015 1:32 pm

Re: About the identifier behind the number

Postby Robert » Wed Jul 22, 2020 8:18 am

I think it is a bug.

The Language report says:
"Blanks and line breaks ... are essential to separate two consecutive symbols."
User avatar
Robert
 
Posts: 158
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: About the identifier behind the number

Postby Josef Templ » Wed Jul 22, 2020 10:49 am

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

- Josef
Josef Templ
 
Posts: 248
Joined: Tue Sep 17, 2013 6:50 am

Re: About the identifier behind the number

Postby Robert » Wed Jul 22, 2020 11:20 am

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


Return to Component Pascal

Who is online

Users browsing this forum: No registered users and 1 guest

cron