why do you need that?

I've made a reflection library which creates metadata on a per-module basis.

usage would be like this:

[code]

module test;
// classes, methods, etc..
mixin(reflect!test); // generates reflection here so private members are accessible

[/code]

-or-

[code]

module main;
import test;
mixin(reflect!test); // oops, test is a static library, must create reflection here instead

[/code]


If the reflection mixin is in the same module that it's reflecting, it can be easily found, but in the case of a static library where reflection information has to be created in a separate module, other modules won't be able to locate the reflection.

Reply via email to