Compare AliasSeq isn't working

Chris Katko ckatko at gmail.com
Wed Mar 28 06:30:09 UTC 2018


On Wednesday, 28 March 2018 at 06:20:56 UTC, Ali Çehreli wrote:
> 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

That's perfect!!! THANKS!!!!


More information about the Digitalmars-d-learn mailing list