Is it possible to use an UDA to generate a struct inside a class ?

Basile Burg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 1 09:35:21 PST 2015


On Tuesday, 30 December 2014 at 19:18:41 UTC, Basile Burg wrote:
> On Tuesday, 30 December 2014 at 19:05:23 UTC, Ali Çehreli wrote:
>> On 12/30/2014 09:42 AM, Basile Burg wrote:
> Ok, thx. I see the trick:
>
>> mixin (propertyInjections!C);
>
> Introspection inside each class. I don't find this solution 
> ugly btw. I think there is no other way to do this.

i've chosen another way to do that but it unleashes an ICE (every 
compiler crash is an ICE right ?), not tested on trunk:

http://dpaste.dzfl.pl/70ab707b21e4

e.g I try to get the getter delegate in order to set a new 
izPropDescriptor in an AA.



More information about the Digitalmars-d-learn mailing list