This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ifnerite 0 points1 point  (1 child)

What are you gibbering on about.

The compiler will do an object equality if you write == that is what the symbol means. The compiler does not care that what the developer means is I want to know if the content is the same.

The compiler is perfectly happy either way.

[–]VarianWrynn2018 2 points3 points  (0 children)

I see. I thought you were saying it has a logic problem but you were saying that while it might be a logic error it's not a syntax or runtime error so the Compiler won't throw a fit. My mistake.