[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Для тех, кто не любит читать умные книги:
volatile означает, что переменная может изменяться способом неизвестным компилятору. То есть, обращения к ней нельзя оптимизировать. И ВСЕ.
К области видимости volatile не имеет _никакого_ отношения.
Учите матчасть.
------------------------------------
An object that has volatile-qualified type may be modified in ways unknown to the implementation or have other unknown side effects. Therefore any expression referring to such an object shall be evaluated strictly according to the rules of the abstract machine,
as described in 5.1.2.3. Furthermore, at every sequence point the value last stored in the object shall agree with that prescribed by the abstract machine, except as modified by the unknown factors mentioned previously. What constitutes an access to an object that has volatile-qualified type is implementation-defined.
------------------------------------------------------------
E-mail: info@telesys.ru