CTFE Status 2

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 8 02:19:03 PDT 2017


On 08/04/2017 10:14 AM, Stefan Koch wrote:
> On Saturday, 8 April 2017 at 08:50:27 UTC, crimaniak wrote:
>> Hi!
>>
>> Is it hard to implement some way to access symbol from UDA constructor
>> of symbol?
>>
>> ```
>> class uda
>> {
>>     this()
>>     {
>>          // Iterate by Foo members
>>         foreach (member; __traits(allMembers, __SYMBOL__))
>>             ...
>>     }
>> }
>>
>>
>> @uda
>> struct Foo
>> {
>>
>> }
>>
>> ```
>
> This is a question for D.Learn.
> please post there.
> Also the question is to terse, I do not know what you are asking.

Nope, not valid for D.learn as it is not currently possible.


More information about the Digitalmars-d mailing list