Implement opUDAOn and opChildOfUDAOn#22915
Conversation
|
Thanks for your pull request and interest in making D better, @rikkimax! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#22915" |
|
What are the use case(s) for this other than struct UDA {
void opUDAOn(alias symbol)() {
pragma(msg, "On: " ~ __traits(identifier, symbol));
}
void opChildOfUDAOn(alias symbol)() {
pragma(msg, "Child: " ~ __traits(identifier, symbol));
}
}? |
This doesn't seem like a complete question. The purpose of these two operator overloads is to allow triggering of reflection capabilities that are then registered somewhere. Such as with web routing or deserialization. |
Is part of linker list work #22824.
Requires DIP.