Click here to Skip to main content

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsThe Comma Operator in C++ PinstaffTerrence Dorsey13-Feb-13 11:27 
GeneralRe: The Comma Operator in C++ PinmemberPIEBALDconsult13-Feb-13 14:59 
GeneralRe: The Comma Operator in C++ [modified] PinmemberStephen Hewitt13-Feb-13 21:00 
GeneralRe: The Comma Operator in C++ Pinmemberpeterchen13-Feb-13 21:51 
GeneralRe: The Comma Operator in C++ PinmemberMatthew Faithfull14-Feb-13 3:59 
Kind of misses the best bits sadly. The comma operator can be used to explicitly control order of operation, i.e. prevent the compiler from reordering things that aren't directly related but have a hidden ordering dependency. Using the comma operator this way is the solution to Alexander Andrescu's pure C++ portable mutex implementation problem. I must write this up with a test case at some point, busy, busy, busy Roll eyes | :rolleyes:
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 20 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid