Compare AliasSeq isn't working

Ali Çehreli acehreli at yahoo.com
Wed Mar 28 06:20:56 UTC 2018


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



More information about the Digitalmars-d-learn mailing list