Growing a Language (applicable to @attribute design)

Adam D. Ruppe destructionator at gmail.com
Tue Nov 13 17:21:36 PST 2012


On Wednesday, 14 November 2012 at 01:16:15 UTC, Andrej Mitrovic 
wrote:
> There are some attributes that would probably be very hardor
> impossible to implement in a library, e.g. @property

@property is very hard to implement in the compiler!

> I could think of
> @inline, but that's hardly implementable in a library, so no 
> conflicts there.

There's always the option of making some of the magical 
identifiers, kinda like intrinsic functions.

The name follows normal D rules, but the behavior for a specific 
name is compiler magic.


More information about the Digitalmars-d mailing list