ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

dwsComp upgrades #471

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've attached a patch with several upgrades for the VCL import system in 
dwsComp.

This includes support for implementing interfaces in classes, partial classes, 
record methods and stateless functions. It also has a fix for issue #456. These 
upgrades also cover issues #369 and #374.

~Frédéric Hannes

Original issue reported on code.google.com by frederic...@gmail.com on 30 Jun 2014 at 2:16

Attachments:

GoogleCodeExporter commented 8 years ago
This also needs an additional string constant in dwsStrings.pas:

UNT_InterfaceNotFound = 'Interface "%s" not found';

Original comment by frederic...@gmail.com on 30 Jun 2014 at 2:24

GoogleCodeExporter commented 8 years ago
Could you add the relevant unit tests for the added features?

I try to have 100% test coverage on new code (as measured with 
https://code.google.com/p/delphi-code-coverage/), and incrementally improve 
coverage to older code, so as to eventually have everything covered.

As the engine gets more complex, any fixes can have side-effects, hence the 
need for 100% coverage (as minimum)

Original comment by zar...@gmail.com on 1 Jul 2014 at 8:12