Object.factory() and exe file size bloat

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 22 02:42:18 PDT 2015


On Friday, 21 August 2015 at 20:28:47 UTC, Walter Bright wrote:
>> Btw we use it for high-level testing framework - will be 
>> rather hard to move
>> that to compile-time approach
>
> It's good to hear of use cases for Object.factory.

If you want details it is special library for black box testing 
applications by spawning them as external processes and 
interacting with their shell/network API. To minimize boilerplate 
test scenarios are derived from special TestCase class and test 
runner finds all classes that derive from TestCase automatically.

Marking them all as export will be inconvenient but is possible - 
but I'd like to get something useful in return, like well-defined 
and working export for example.

> > until some reflection bugs gets fixed.
>
> Bugzilla issues? (You knew that was coming!)

https://issues.dlang.org/show_bug.cgi?id=11595 is the main 
offender. Currently the task 'find all symbols with a given trait 
in the whole program' can't be implemented at CT.


More information about the Digitalmars-d mailing list