News for hackers. Stuff that matters.
Re:What is “:-!!” in C code? by ajkjk on Monday November 21, 2016 @12:56AM (#13003471)
It is insane, though, and should have been replaced with a compiler feature to do static assertions twenty years ago.
Re:What is “:-!!” in C code? by colanderman on Monday November 21, 2016 @01:01AM (#13003488)
It was, five years ago. (C11 provides static_assert.) C was probably one of the first widely-used languages to support such a thing, beside Ada and C++.
Re:What is “:-!!” in C code? by wahern on Monday November 21, 2016 @01:54PM (#13008029)
C++ added static_assert with C++11.

Though, upon further examination C++11 was published 1 month before C11 (September and October, respectively). I guess your point still stands.

Re:What is “:-!!” in C code? by pjmlp on Monday November 21, 2016 @10:02AM (#13005855)
Eiffel did it first.
Re:What is “:-!!” in C code? by tedunangst on Monday November 21, 2016 @10:29AM (#13006057)
No, Boost preprocessor is insane.
Re:What is “:-!!” in C code? by ajkjk on Monday November 21, 2016 @04:56PM (#13009594)
Why not both?