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

It's not contrived enough - it happens in real C code.


My example is slightly contrived because the parentheses around b are unnecessary to cast it, but it becomes more realistic if it's a more complex expression like this:

  (foo)(a + b)
Or this:

  // Comma expression or function call arguments?
  (bar)(first = side_effect++, second)


Yeah,

    (a)(b,c)
is that a comma-expression or an argument list?




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

Search: