[fpc-devel] Assigning class procedures

2006-03-14 Thread Michalis Kamburelis
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

Re: [fpc-devel] Assigning class procedures

2006-03-14 Thread Peter Vreman
> 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

Re: [fpc-devel] Assigning class procedures

2006-03-15 Thread Florian Klaempfl
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.