Re: Debug help - Programming in D page 633 - concurrency shared(Exception) warnings

2025-08-30 Thread Brother Bill via Digitalmars-d-learn
On Saturday, 30 August 2025 at 18:04:20 UTC, Steven Schveighoffer wrote: On Saturday, 30 August 2025 at 11:43:27 UTC, Brother Bill wrote: I tried various code changes, none of which worked. Kindly provide code changes to fix warnings that reflect modern D programming. This worked for me: W

Re: Debug help - Programming in D page 633 - concurrency shared(Exception) warnings

2025-08-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 30 August 2025 at 11:43:27 UTC, Brother Bill wrote: I tried various code changes, none of which worked. Kindly provide code changes to fix warnings that reflect modern D programming. This worked for me: ```d import std.stdio; import std.concurrency; import std.conv; struct Calc

Re: Debug help - Programming in D page 633 - concurrency shared(Exception) warnings

2025-08-30 Thread Brother Bill via Digitalmars-d-learn
On Saturday, 30 August 2025 at 03:21:14 UTC, Steven Schveighoffer wrote: `Tid` can only send or receive shared or immutable data. This is a long standing requirement, and it makes sense. The thing is, this data is shared *only* when it is going through the message system. Once it's out, you ca

Re: Debug help - Programming in D page 633 - concurrency shared(Exception) warnings

2025-08-29 Thread Steven Schveighoffer via Digitalmars-d-learn
A note on your references here: I'm assuming you are working from a physical book. But the online book is here: https://ddili.org/ders/d.en/index.html When you have questions, if you could link to the content, that would be really helpful. Especially since you are not including the entire ma