renan-guimaraes / dwscript

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

Partial classes in TdwsUnit #374

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to add support for defining partial classes in TdwsUnit, 
which can be defined further in script-side units?

Original issue reported on code.google.com by frederic...@gmail.com on 20 Apr 2013 at 12:20

GoogleCodeExporter commented 9 years ago
This should be possible but it wouldn't work with the static symbols option.
You could try by forcing the csfPartial flag in the TdsUnit source and see if 
no major hurdles come up, a bunch of dedicated test cases would be in order 
though.

Original comment by zar...@gmail.com on 21 Apr 2013 at 3:40

GoogleCodeExporter commented 9 years ago
I've added an IsPartial property to TdwsClass. So far the results look 
promising, there are some minor issues I've encountered so far, but nothing 
that causes any problems. I'm successfully extending a subclassed delphi-side 
class in a scripted unit and using it. Is there any chance this will be 
implemented as a feature?

Original comment by frederic...@gmail.com on 22 Apr 2013 at 7:49

Attachments: