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

Also seems like there would be use cases where you don't even want to assign the result, you just want the destructor to run at the end of the scope. Something like:

  using someMutex.lock();
With the assignment syntax it's not obvious to me whether that's allowed.


You assign it to a variable that is then disposed of once it's out of scope?




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

Search: