Frank Heckenbach wrote:
Prof A Olowofoyeku (The African Chief) wrote:
BTW, I don't think many real programs would run into this problem, because object type names and field names are usually quite different. Therefore I'd almost like to forbid it entirely, but for compatibility's sake, I'll go with a warning in BP mode.
A warning it is then!
OK, a warning in default and BP modes, and an error in ISO (i.e., OOE) mode. (fjf945*.pas)
AFAIKS in OOE mode `object' is not (or should not be) a keyword, so part of the problem vanishes. Do we implement `class' already? If yes, then it is worth checking what Delphi is doing.