On 8/22/2015 2:42 AM, Dicebot wrote:
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.
I'm not sure how export would help on Linux.
> 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.
Thanks!