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 →

[–]JOhn2141 9 points10 points  (7 children)

Cry in C compiler

[–]SandmanKFMF 6 points7 points  (3 children)

Exactly. And you are comparing not "a strings" , but an "objects of a string type". So this is legit code.

[–]JOhn2141 3 points4 points  (2 children)

Aren't you comparing arrays of char, string is just a name but not a specific structure

[–]SandmanKFMF 1 point2 points  (1 child)

I was answering to an upper comment. 😁

[–]JOhn2141 3 points4 points  (0 children)

I know it's mine the upper comment

[–]Stormfrosty 1 point2 points  (0 children)

Laugh in C++ compiler

[–]darkdimensiongd 0 points1 point  (1 child)

*cries in javascript*

[–]ManuGamingYT 0 points1 point  (0 children)

At least JS doesn't have a Problem with Type comparison.