Lazarus auto-inserts blank method bodies into ported Delphi codes in some circumstances
Original Reporter info from Mantis: szali
-
Reporter name: szali
Original Reporter info from Mantis: szali
- Reporter name: szali
Description:
* Make an empty project
* Set mode from objfpc to delphi
* make a method in the main form which takes some parameters
* implement the method body, but this time write no parameters in method signature - Delphi mode allows this
(See the attached project instead of the above steps.) Then:
* add an event to your form, e.g. double click the form
* your already implemented method will get an additional empty body, because Lazarus does not notice that we are in Delphi mode and the method is already implemented
Additional information:
Very frustrating if you have lots of such methods and you have two options: modify all their signatures manually in the implementation (takes a lot of time), or kill excess empty procedures which cause build errors every time.
Mantis conversion info:
- Mantis ID: 20812
- Version: 0.9.30.2
- Fixed in revision: 34939 (#ebb35c4a)