Greetings<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>I am trying to create a multithreaded application. Right now I am finding it difficult to work with "shared" qualifier. One of the reasons is that Phobos library does not seem compatible with "shared" data-structures. For example:</div>
<div><br></div><div><div>import std.bitmanip;</div><div>shared BitArray foo;</div><div>void main() {</div><div> foo ~= true;<span class="Apple-tab-span" style="white-space:pre"> </span>// this does not work</div><div>
(cast(BitArray)foo) ~= true;<span class="Apple-tab-span" style="white-space:pre"> </span>// Even casting does not help</div>
<div>}</div></div><div><br></div><div><br></div><div>I know that "shared" is a relatively new qualifier in D2. Are there plans to make Phobos "shared" compatible?</div><div>Are there any workarounds that I am missing.</div>
<div><br></div><div>Regards</div><div>- Puneet</div>