On 03/27/2018 11:11 PM, Chris Katko wrote: > writeln(a[0]); //first is "pos(100,100)" > static if( > is(a[0] == pos) //<---never matches
It's because not a[0] but its *type* is pos: is(typeof(a[0]) == pos) //<---MATCHES! :) Ali
Ali Çehreli via Digitalmars-d-learn Tue, 27 Mar 2018 23:25:30 -0700
On 03/27/2018 11:11 PM, Chris Katko wrote: > writeln(a[0]); //first is "pos(100,100)" > static if( > is(a[0] == pos) //<---never matches
It's because not a[0] but its *type* is pos: is(typeof(a[0]) == pos) //<---MATCHES! :) Ali