<div class="gmail_quote">On 5 April 2012 21:32, Timon Gehr <span dir="ltr"><<a href="mailto:timon.gehr@gmx.ch">timon.gehr@gmx.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 04/05/2012 08:05 PM, Andrei Alexandrescu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 4/5/12 12:44 PM, deadalnix wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 05/04/2012 19:35, Walter Bright a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 4/5/2012 5:00 AM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
C# and Java both have attributes, following these established design<br>
patterns, I<br>
don't think there should be any mystery over how they should be<br>
implemented.<br>
</blockquote>
<br>
At the Lang.NEXT conference over the last 3 days, I was able to talk to<br>
many smart people about attributes. But I did find some confusion - are<br>
they best attached to the variable/function (i.e. "storage class"), or<br>
attached to the type ("type constructor")? I think the former. Attaching<br>
it to the type leads to all sorts of semantic issues.<br>
<br>
>From your list of uses, it looks like attaching it to the variable or<br>
function is an apropos solution.<br>
</blockquote>
<br>
They should be attached to declarations.<br>
</blockquote>
<br>
The question was whether the declaration affects the type of the<br>
declared or not.<br>
<br>
Andrei<br>
</blockquote>
<br></div></div>
Ideally it would be powerful enough to allow changing the type, but most applications probably want the type to stay the same.<br>
</blockquote></div><br><div>Didn't someone already say there were existing language defined attributes that could be neatly implemented via libs if the feature were available? Which ones were they?</div>