It is safe to remove references to volatile?

Yao Gómez yao.gomez at
Fri Jan 27 22:43:42 PST 2012

As the title says. If I have a module that has volatile 
definitions, and if I compile that module using the -w switch, I 
get the error:

foobar.d(1980): volatile statements deprecated; used synchronized 
statements instead

Besides the silly misspelling in the error message, should I 
follow its advice and replace volatile with synchronized? Or it 
is safe to just remove it?

Yao Gómez

More information about the Digitalmars-d-learn mailing list