logic operators on chars inconsistancy
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
The errors in the program below are confusing.
var c,c1,c2 : char;
begin
c:=c1 or c2; // no error
c:='a' or 'b'; // Error: Operation "or" not supported for types "Char" and "Char"
c:=#1 or #2; // Error: Operation "or" not supported for types "Char" and "Char"
end.
Additional information:
Delphi lists all three as illegal
Mantis conversion info:
- Mantis ID: 8780
- Fixed in version: 2.2.0
- Fixed in revision: 7233 (#2f983bf9)