[fpc-devel] Interface: Method resolution clauses

Marcos Douglas md at delfire.net
Mon Apr 30 21:07:36 CEST 2012


On Mon, Apr 30, 2012 at 3:53 PM, Sergei Gorelkin
<sergei_gorelkin at mail.ru> wrote:
> 30.04.2012 22:42, Marcos Douglas пишет:
>
>>
>> FPC 2.6.1 or 2.7.1 (trunk)?
>> I'm using 2.6.1 and I can't compile it.
>>
> I was testing with trunk, but I don't remember significant changes to this
> part of compiler after 2.6.0.
> What error do you get?
>
>
> Sergei

You're right, sorry.
See:

Ex:
  ImyInterface = interface
    procedure Foo;
  end;

 TmyClass = class(TInterfacedObject, ImyInterface)
 public
   procedure ImyInterface.Foo = myFoo;
   procedure myFoo;  << this line was missing
 end;

I thought it was not necessary.
Thank you.

Marcos Douglas



More information about the fpc-devel mailing list