Ampersand is accepted as a variable name.
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
The escape character "&" is also accepted as a variable name.
This should not be allowed, although one funny side effect is that you can have anonymous variables according to the compiler warning in the example code:
program anonvar;
var
&:integer;
begin
writeln(&);
readln;
end.
Seems to be the case in most if not all modes.
Mantis conversion info:
- Mantis ID: 25215
- OS: All
- OS Build: All
- Platform: All
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 25835 (#d908dbee)