Get unknown symbol (struct, method, class) tagged with User Defined Attributes

Jacob Carlborg doob at me.com
Wed May 13 07:48:10 UTC 2020


On 2020-05-12 06:02, Steven Schveighoffer wrote:

> If you want a list of ALL symbols that have the UDA in the application, 
> that would require some form of runtime reflection (like Java). D has 
> very limited support for runtime reflection. In D, you would use some 
> form of registration to tell the system about your symbols.

I think it's possible to implement the `RTInfo` template in `object.d`. 
But that requires a custom druntime.

`RTInfo` is a template that is instantiated once for each type in the 
program.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list