Return all objects with specified UDA?

Jacob Carlborg doob at me.com
Sun Jul 21 02:09:53 PDT 2013


On 2013-07-21 06:21, Carl wrote:
> I am experimenting with user defined attributes, but am wondering if a
> list of all objects with a specified UDA could be generated?
>
> If not, is there a workaround for getting these objects without a direct
> reference?

If you modify druntime you can do it. This template gets instantiated 
with every user defined type:

https://github.com/D-Programming-Language/druntime/blob/master/src/object.di#L644

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list