Event handler needs explicit address pointer
Original Reporter info from Mantis: Libra RHR
-
Reporter name: Libra RHR
Original Reporter info from Mantis: Libra RHR
- Reporter name: Libra RHR
Description:
In standard Pascal, an event handler is assigned by an implicit pointer:
btn.OnClick:=Self.btn1Click;
In Lazarus, the explicity of the pointer is needed, which is annoying:
btn.OnClick:=@btn1Click;
Additional information:
Routines typed "procedure/function ... of object" should make implicit pointers.
Mantis conversion info:
- Mantis ID: 1587
- OS: Linux
- OS Build: 2.6.8-13mdk
- Platform: i386
- Version: 0.9.10