__traits(documentation, X)

Simen Kjærås simen.kjaras at gmail.com
Wed Jan 17 18:24:50 UTC 2018


On Wednesday, 17 January 2018 at 16:52:40 UTC, Steven 
Schveighoffer wrote:
> The charter of comments is to NOT affect code, ever. They can 
> be used to affect other systems, such as the ddoc generator, 
> ide hints, etc., but you can be sure (?) that comments won't 
> change code.
>
> I think this is an important line not to cross.

That's already perfectly possible today:

enum a = import(__FILE__);
static if (a.indexOf("//") > -1) {
     fireZeMissiles();
}

--
   Simen


More information about the Digitalmars-d mailing list