Hi
I'm just migrating a lot of code from delphi to objfpc mode, and I
noticed that in objfpc mode I can't do
MyFunc := @TMyClass.Func;
where TMyClass.Func is a class procedure that matches the type of
MyFunc. I'm attaching the complete source code. With
fpc -S2 test_1.pas
the attached c
> Hi
>
> I'm just migrating a lot of code from delphi to objfpc mode, and I
> noticed that in objfpc mode I can't do
>
>MyFunc := @TMyClass.Func;
>
> where TMyClass.Func is a class procedure that matches the type of
> MyFunc. I'm attaching the complete source code. With
>fpc -S2 test_1.pas
Peter Vreman wrote:
>> Hi
>>
>> I'm just migrating a lot of code from delphi to objfpc mode, and I
>> noticed that in objfpc mode I can't do
>>
>>MyFunc := @TMyClass.Func;
>>
>> where TMyClass.Func is a class procedure that matches the type of
>> MyFunc. I'm attaching the complete source code.