Thread overview | |||||
---|---|---|---|---|---|
|
October 22, 2010 [D1,__traits] D1 has __traits? | ||||
---|---|---|---|---|
| ||||
http://www.digitalmars.com/d/1.0/template.html .. assert(__traits(isRef, x[i])); .. static assert(!__traits(compiles, min(3, y) = 10)); These won't compile with my D1 :( |
October 22, 2010 Re: [D1,__traits] D1 has __traits? | ||||
---|---|---|---|---|
| ||||
Posted in reply to %u | On 2010-10-22 20:57, %u wrote: > http://www.digitalmars.com/d/1.0/template.html > .. > assert(__traits(isRef, x[i])); > .. > static assert(!__traits(compiles, min(3, y) = 10)); > > These won't compile with my D1 :( D1 neither has __traits or auto ref. I guess that the section was accidentally put in the D1 specification. -- /Jacob Carlborg |
October 22, 2010 Re: [D1,__traits] D1 has __traits? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | == Quote from Jacob Carlborg (doob@me.com)'s article
> On 2010-10-22 20:57, %u wrote:
> > http://www.digitalmars.com/d/1.0/template.html
> > ..
> > assert(__traits(isRef, x[i]));
> > ..
> > static assert(!__traits(compiles, min(3, y) = 10));
> >
> > These won't compile with my D1 :(
> D1 neither has __traits or auto ref. I guess that the section was accidentally put in the D1 specification.
filed
|
Copyright © 1999-2021 by the D Language Foundation