digitalmars.D.learn - [D1,__traits] D1 has __traits?
- %u (6/6) Oct 22 2010 http://www.digitalmars.com/d/1.0/template.html
- Jacob Carlborg (5/11) Oct 22 2010 D1 neither has __traits or auto ref. I guess that the section was
- %u (2/12) Oct 22 2010 filed
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 :(
Oct 22 2010
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
Oct 22 2010
== Quote from Jacob Carlborg (doob me.com)'s articleOn 2010-10-22 20:57, %u wrote:filedhttp://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.
Oct 22 2010