July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
The deprecation of ++ shows that (currently) shared's purpose is not only to differentiate between... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
shared only differentiates between shared and unshared data. Teaching people to write legit concurrent code... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
I'm not sure what you're saying here. Should unsafe reading and writing of... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
It's strange if you want to expose a bare volatile variable to the rest... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
Correct me if I'm wrong: Currently, the compiler generates a non-atomic load for... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
True. One would have to watch out for that, and maybe work around correspondingly. The... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
You suggested to use atomicLoad to access shared data. Raw atomic load is an assembler... | |||
July 12, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
If you cast shared away, an unshared postblit will be called instead of shared one. | |||
July 11, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
Backpedaling on that one. With automatic atomic loads and stores, one could accidentally write this... | |||
July 11, 2016 General » Re: implicit conversions to/from shared | |||
|---|---|---|---|
| |||
Volatile just means that another thread can mess with the data, right? So shared data... | |||
Copyright © 1999-2021 by the D Language Foundation