On Fri, Jan 4, 2013 at 9:40 PM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1/4/2013 9:48 AM, Max Samukha wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It looks we simply cannot modify existing declarations with UDAs.<br>
<br>
@(attr) alias foo = bar; // @(attr) is ignored.<br>
</blockquote>
<br></div>
alias provides a way to provide an alternate name for a symbol. It wouldn't be an alternate name if it had different attributes. Trying to make such work would have serious semantic consequences.<br>
<br>
Hence, no, you cannot use alias to modify the attributes.<br>
<br>
</blockquote></div><br><div>The (future) documentation says attributes can be used with declarations. I tried to use one before a module declaration but it didn't work.</div><div><br></div><div>Is that a bug or are module declarations not 'real' declarations?</div>
<div><br></div><div><br></div>