I neither consider a string an expression, because in Expression 8.1 only variables are considered as operand (I guess that constant designators are considered to be propagated as literal values).
He left "string" in the grammar because it includes single character constants.
Are you serious?
On Monday, October 23, 2017 at 11:57:15 PM UTC+2, cfbso...@gmail.com wrote:
Yes, what is the type of "abc"?
On Monday, October 23, 2017 at 11:57:15 PM UTC+2, cfbso...@gmail.com wrote:
Are you serious?
Yes, what is the type of "abc"?
What operations are defined for it?
As you quoted earlier:
'...strings are (implicitely) regarded and implemented as arrays of characters"
The same argument can be applied to NIL. It is never mentioned
explicitly that NIL can be compared with pointer or procedure variables.
Indeed this doesn't mean strings ARE array of characters.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 374 |
Nodes: | 16 (2 / 14) |
Uptime: | 141:16:48 |
Calls: | 7,958 |
Calls today: | 3 |
Files: | 13,011 |
Messages: | 5,814,067 |