Closures/Value capture: Difference between revisions

→‎{{header|C}}: it's a lot worse than that
(→‎{{header|C}}: Additional portability comments.)
(→‎{{header|C}}: it's a lot worse than that)
Line 5:
 
=={{header|C}}==
Non-portable. Copying Worksa onfunction x86body platform without NX protection. Dependsdepends on implementation-specific semantics of volatile, whichif mightthe bereplacement nexttarget tostill nothingexists forafte optimization, if the dest memory is suitably aligned, if the memory is executable, if it makes any function calls to a nonstaticrelative localoffset, variableif whoseit refers to any memory location with an absolute address, isetc. It only very neveroccasionally takenworks.
 
<lang c>#include <stdio.h>
Anonymous user