Am 12.11.2012 07:50, schrieb Walter Bright:
On 11/11/2012 10:05 PM, Benjamin Thaut wrote:
The only problem beeing that you can not really have user defined
shared (value)
types:
http://d.puremagic.com/issues/show_bug.cgi?id=8295
If you include an object designed to work only in a single thread
(non-shared), make it shared, and then destruct it when other threads
may be pointing to it ...
What should happen?
I'm not talking about objects, I'm talking about value types.
And you can't make it work at all. If you do
shared ~this()
{
buf = null;
}
it won't work either. You don't have _any_ option to destroy a shared
struct.
Kind Regards
Benjamin Thaut