On 6/8/18 2:13 PM, Brian wrote:
Like:class A { string b; string c; } compile-time to: class A { string _b; string c; } or: class A { string c; }
Not possible in D. What you are looking for is an AST macro, and D does not have those.
However, you can potentially create another type that mimics everything that A does except for one thing using compile-time introspection. But you won't be able to do that with the member functions.
-Steve