[Pas2js] Interface implementation idea

Michael Van Canneyt michael at freepascal.org
Thu Jan 18 06:11:03 CET 2018



On Wed, 17 Jan 2018, warleyalex via Pas2js wrote:

>
>> Is this mail meant as an inspiration for other users, or is this a
>> proposal how pas2js could implement interfaces eventually? 
>
> This is a proposal.
>
> you don't actually need to declare that your class implements an interface.

Of course you do. The compiler checks at compile time whether all
methods of the interface are implemented when it has parsed the class
declaration. It cannot do that if it doesn't know which interfaces to 
check.

Michael.


More information about the Pas2js mailing list