July 21, 2013 Return all objects with specified UDA? | ||||
---|---|---|---|---|
| ||||
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? |
July 21, 2013 Re: Return all objects with specified UDA? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carl | 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 |
Copyright © 1999-2021 by the D Language Foundation