Re: Is there an elegant way to non-destructively step through a red black tree?

2025-04-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, March 20, 2025 6:32:03 PM MDT H. S. Teoh via Digitalmars-d-learn wrote: > On Thu, Mar 20, 2025 at 11:51:46PM +, WhatMeWorry via Digitalmars-d-learn > wrote: > > Is there an elegant way, like with foreach, to step through a red black > > tree non-destructively? This destructi

Re: How does D lang handle multithreaded applications and static members of classes?

2025-04-03 Thread Inkrementator via Digitalmars-d-learn
On Wednesday, 2 April 2025 at 08:38:32 UTC, Daniel Donnelly, Jr. wrote: On Wednesday, 2 April 2025 at 08:33:05 UTC, Inkrementator wrote: All global variables in D, including static class members, are thread local by default. You have to explicitly add the `__gshared` attribute to the static var