So you're saying that UDAs are mutable after all? You can change a UDA but you can't add a new one, right? If that's the case, it will solve ALL my problems. I'll have all types marked with my struct and BAM! I have mutable compile-time variables, which I solely needed.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 1:10 AM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 11/27/2012 10:27 PM, Gor Gyolchanyan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think I really don't know what exactly do the UDAs do at the moment,<br>
judging from your reply.The only documentation was the original<br>
D.anounce post of yours. Is there a way I can get a reliable<br>
documentation on this?<br>
<br>
Use cases:<br>
<br>
1. I have a declaration with a UDA struct. I introspect the types I need<br>
and add their names to an array in that struct. read that struct in a<br>
static constructor and do necessary stuff with all those types. Is this<br>
possible currently?<br>
</blockquote>
<br></div>
Yes.<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. I have some code, which must be run on any type, marked with a<br>
special UDA. Can I have that code executed without explicitly having to<br>
mix stuff in every module?<br>
</blockquote>
<br></div>
It'll either have to be explicitly mixed in with every module that uses the UDA or some other code you write will explicitly need to apply it to each module that uses it. I suggest the former would be more convenient. Note that if a module is to use a UDA, you'll have to edit it anyway, so it shouldn't be a big issue to add the mixin.<br>

<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>