String Constants Declared with Type-Casting Are Blank
Original Reporter info from Mantis: TimYoung
-
Reporter name: Tim Young
Original Reporter info from Mantis: TimYoung
- Reporter name: Tim Young
Description:
The following constant definition will result in the string constant being treated as blank when referenced elsewhere in code:
DEFAULT_SIGNATURE = TEDBString('edb_signature')
where TEDBString is defined in another unit as:
TEDBString = WideString;
or
TEDBString = AnsiString;
depending upon the version of our product being used (Unicode or ANSI).
The same constant declared like this:
DEFAULT_SIGNATURE = WideString('edb_signature')
works fine, as does this:
DEFAULT_SIGNATURE = 'edb_signature'
Lazarus 0.926 worked okay with this (FPC 2.2.0), but 0.926.2 (FPC 2.2.2) exhibits the issue.
Mantis conversion info:
- Mantis ID: 13583
- Version: 2.2.2
- Fixed in version: 2.4.0
- Fixed in revision: 13034 (#045ae3ab)