Re: [fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marcos Douglas B. Santos
On Sat, May 26, 2018 at 4:56 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas B. Santos said: >> Can I make a class helper to implements an Interface in an existing class? > > No, since a change to the class is needed (the tables with methods). Helpers > are more an extra sc

Re: [fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marco van de Voort
In our previous episode, Marcos Douglas B. Santos said: > Can I make a class helper to implements an Interface in an existing class? No, since a change to the class is needed (the tables with methods). Helpers are more an extra scope layered over the class without changing it.

[fpc-pascal] Class Helper to implement an Interface

2018-05-26 Thread Marcos Douglas B. Santos
Hi, Can I make a class helper to implements an Interface in an existing class? For example, TStringList class has Find: public function TStringList.Find(const S: string; out Index: Integer):Boolean; Imagine an IFinder interface with the same method (only this method). So, is it possible to make