Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nitrogen
on May 4, 2014
|
parent
|
context
|
favorite
| on:
A C error handling style that plays nice with C++ ...
In that case, is a compiler allowed to instantiate both ThrowOnError objects before calling either of the C functions?
huhtenberg
on May 4, 2014
[–]
No. Overloaded operators act like functions and functions are sequence points.
MaulingMonkey
on May 4, 2014
|
parent
[–]
Functions have a sequence point that insists their arguments are evaluated before the function is called, but having both ThrowOnError objects constructed before calling any of the other functions would still satisfy that constraint.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: