You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<calex> p0nce: I just read the rest of your "four ways to use static" tip. You missed one of the more nifty usages D retained from C++: function-local static variables.
<calex> size_t monotonic() { static size_t sequenceNumber; return sequenceNumber++; }
<calex> assert( monotonic != monotonic );
<ketmar> p0nce: also, `__gshared` implies `static` everywhere except top-level declarations
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: