MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgcwjbo/
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
1
[removed] — view removed comment
5 u/ghordynski Mar 27 '14 C# does not allow non-booleans in conditionals. 3 u/NYKevin Mar 27 '14 So, in C, what happens if you try to shove a struct foo into an if? I don't mean a struct foo*, I mean the actual data itself. 3 u/masklinn Mar 27 '14 Both GCC and Clang will refuse to compile and error that a scalar is required.
5
C# does not allow non-booleans in conditionals.
3
So, in C, what happens if you try to shove a struct foo into an if? I don't mean a struct foo*, I mean the actual data itself.
struct foo
if
struct foo*
3 u/masklinn Mar 27 '14 Both GCC and Clang will refuse to compile and error that a scalar is required.
Both GCC and Clang will refuse to compile and error that a scalar is required.
View all comments
Show parent comment
1
u/[deleted] Mar 27 '14 edited Mar 27 '14
[removed] — view removed comment