__traits(documentation, X)

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jan 17 18:19:56 UTC 2018


On Wed, Jan 17, 2018 at 06:24:50PM +0000, Simen Kjærås via Digitalmars-d wrote:
> 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();
> }
[...]

I can see it now.  In the year 2030, a major exploit is found in a
widely-deployed online D application, causing massive data loss and
damages. The cause? A misplaced comment... :-P


T

-- 
Never trust an operating system you don't have source for! -- Martin Schulze


More information about the Digitalmars-d mailing list