Is alias equality inconsistent?
Timon Gehr
timon.gehr at gmx.ch
Fri May 13 17:28:19 PDT 2011
> The only value of is and static arrays that I can think of is if you can use
> them to verify whether a dynamic array refers to a particular static array.
> Other than that, what value do they add? If you're checking for equality, then
> use ==. That one use case may make it useful to allow for is in comparing
> static and dynamic arrays, but other than that, I don't really see what is
> gives you when comparing static arrays.
>
> - Jonathan M Davis
is on static arrays compares ptr and length too. So it is different from ==.
More information about the Digitalmars-d
mailing list