Checking if a string is null

Regan Heath regan at netmail.co.nz
Wed Jul 25 10:28:56 PDT 2007


Max Samukha wrote:
> On Wed, 25 Jul 2007 15:30:10 +0100, Regan Heath <regan at netmail.co.nz>
> wrote:
> 
>> I am a little puzzled by the fact that:
>> "Identity Expressions" include ("is", "!is")
>> "Equality Expressions" include ("==", "!=", "is", "!is")
>> Why do "is" and "!is" exist in both equality and identity?
> 
> From "Identity Expressions: "For operand types other than class
> objects, static or dynamic arrays, identity is defined as being the
> same as equality." That's the reason, I guess.

Ahh thanks, I was thinking of it solely in terms of dynamic arrays and 
ignoring all other types you might compare!

Regan



More information about the Digitalmars-d mailing list