WrapDelphi.CreateVarParam with object - a small helpful overload#321
Conversation
|
Could you please describe a use case or even better a unit test that should pass? |
|
it's not very common - for example, TcxGrid from DevExpress has an event defined as: |
|
I am happy to merge this, but is it unreasonable to ask to provide a unit test (in WrapDelphiTest.pas) before merging? This would serve as a documentation for users. |
|
you are right, code should be covered by unit tests, I'll prepare sth |
|
finally i added a test for this function - but to take a step forward, this test covers more general event handlers in p4d |
... function CreateVarParam(PyDelphiWrapper : TPyDelphiWrapper; AObject: TObject) : PPyObject; overload;