@disable

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jan 16 09:05:27 PST 2010


Michal Minich wrote:
> On Sat, 16 Jan 2010 00:58:36 -0600, Andrei Alexandrescu wrote:
> 
>> I'd also like to see other keywords (nothrow, pure, override come to
>> mind) transferred into the attribute space.
> 
> I'd welcome if that happens. My personal favorite is "align", it is 
> common, hard to replace word when one works with text/graphics/forms/
> layout stuff, and as D keyword, it is rarely used.
> 
> Some other candidates are at http://www.digitalmars.com/d/2.0/
> attribute.html, maybe except "auto", it feels more like command to me 
> than attribute.
> 
> What about immutable/const - are they @attributes?. Also function 
> parameter attributes = in/inout/ref - will it be possible to apply 
> attribute to fn parameters?

immutable and const are qualifiers. That doesn't necessarily preclude 
their usage with @, but it does make different from e.g. @pure.

> (It seems that what should be @attribute and what not is for big 
> discussion.)

I agree.


Andrei



More information about the Digitalmars-d mailing list