[fpc-pascal] Question on method pointers

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Sat Nov 5 20:36:55 CET 2005


It works, thanks

>
> On 05 Nov 2005, at 20:21, dhkblaszyk at zeelandnet.nl wrote:
>
>> I have a variable that is of this type and I want to assign the
>> result of
>> this function to a variable of type extended. I was thinking to do
>> it like
>> this;
>>
>> var MyFuncVar: TMyFunc;
>> ....
>> MyResult := MyFuncVar;
>>
>> But obviously it does not work. On delphi it does, so how can I
>> make it
>> work on FPC??
>
> It should work in Delphi mode. In other modes, use
>
> MyResult := MyFunc();
>
> (which also works in Delphi if I'm not mistaken)
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>





More information about the fpc-pascal mailing list