[Issue 12133] Relaxed read-modify-write for shared lvalues

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 11 15:57:17 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12133



--- Comment #6 from Stanislav Blinov <stanislav.blinov at gmail.com> 2014-02-11 15:57:16 PST ---
Something a bit less involving :)

ref auto assumeLocal(T)(ref shared T var) @trusted pure nothrow
{
    return *cast(T*)&var;
}

I should've probably noted that I already have implementations for both
functions in mind, just not in the state of pull request yet.

But comments, suggestions, objections and improvements are key!

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list