Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If MAX evaluates f() twice, then it is broken. It's trivial to write a version that only evaluates its arguments once in C++ using templates, and in C using common extensions that allow for macros with multiple statements that act as an expression.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: