volatile deprecated, yet still in Phobos?

%u wfunction at hotmail.com
Mon Jan 31 02:02:24 PST 2011


Hi,

I've tried to compile programs and Phobos without deprecated features on, and
yet I've come across a problem:
Volatile statements are deprecated.

So, for example, in thread.switchOut(), these statements are invalid:

    volatile tobj.m_lock = true;
    fiber_switchContext( oldp, newp );

What is the correct way to fix this?

Thank you!


More information about the Digitalmars-d-learn mailing list