logoalt Hacker News

ataylor284_last Sunday at 4:40 PM1 replyview on HN

Yup. If you call a function with the C calling convention with the incorrect number of parameters, your cleanup code still does the right thing. With the Pascal calling convention, your stack is corrupted.


Replies

rep_lodsblast Sunday at 5:29 PM

Yeah, it's really irresponsible how Pascal sacrifices such safety features in the name of faster and more compact code... oh, wait, the compiler stops you from calling a function with incorrect parameters? Bah, quiche eaters!

show 1 reply