Custom attributes (again)

Johannes Pfau nospam at example.com
Fri Apr 6 03:48:36 PDT 2012


Am Fri, 06 Apr 2012 12:43:27 +0200
schrieb Timon Gehr <timon.gehr at gmx.ch>:

> On 04/06/2012 12:28 PM, Walter Bright wrote:
> > On 4/6/2012 3:23 AM, Manu wrote:
> >> I don't see the advantage over:
> >> @editor(...)
> >>
> >> ?
> >
> > Name collisions with other @ attributes.
> >
> 
> Which other attributes? Built-in ones? Otherwise, the D module system 
> will be great at disambiguating the collisions as soon as
> inaccessible private symbols do not participate in symbol name
> collisions any more.
> 
> Maybe we could just keep all the lower case @attributes reserved in 
> order to be future proof.

Or add a reserved pseudo-namespace (like e.g 'builtin') for compiler
defined attributes and use normal namespace resolution for those:

@safe <=> @builtin.safe


More information about the Digitalmars-d mailing list