This is not correct: "Error: (2028) Keyword redefined as macro has no effect" It does have my desired effect.
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
The above does have an effect and the correct effect.
I can stop the use of with.
To me that is the desired effect, so
- there is something wrong with the docs
- there is something wrong with the implementation in the compiler.
In effect that error is not correct.
Steps to reproduce:
{$macro on}{$define with:=throwerroronwith}
procedure throwerroronwith;
begin
{$error do not use with}
end;
begin
with Tobject.Create do;
end.
Additional information:
Outputs:
withless.pas(2,13) Error: Keyword redefined as macro has no effect
withless.pas(5,4) Error: User defined: do not use with
withless.pas(11) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Mantis conversion info:
- Mantis ID: 35876
- OS: all
- OS Build: all
- Build: 42460
- Platform: all
- Version: 3.3.1