Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aciuix
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
aciuix
11y ago
You are really something else: -Strawman argument. -Appeal to authority. Next time stick to the issue, you will find the debate will be much more rewarding for both parties.
2.
▲
by
aciuix
11y ago
You really shouldn't trust every article about C on the internet. Most of them make mistakes. If you are using gcc, you can start with the flag: -ftrapv. It does everything for you.
3.
▲
by
aciuix
11y ago
Checking future result of arithmetic where a wraparound is undesired or undefined, is a basic skill every C programmer should know. C is not a scripting language. If you use the tools available to you, and don't abuse the language, the
4.
▲
by
aciuix
11y ago
I think it is a matter of being consistent. Both ways have certain syntactic dis/advantages. The first one enables you to have the function call directly in the if statement, but requires you to define a variable beforehand. The latter
5.
▲
by
aciuix
11y ago
The example shown in the article is in fact undefined behavior: 6.3.2.1,p2 If the lvalue designates an object of automatic storage duration that could have been declared with the register storage class (never had its address taken), and th
6.
▲
by
aciuix
11y ago
For that to happen the programmer had to be overly clever in the first place, in which case it is his own fault. If you stick to what is taught in any good tutorial/book, you don't even have to think about problems like this. But
7.
▲
by
aciuix
11y ago
It seems the movie is going to be very pro-Snowden. HN readers should instead watch CITIZENFOUR, but general population will find it boring, so I guess this new movie is a good thing.