Phobos and shared

d coder dlang.coder at gmail.com
Tue Mar 15 07:22:14 PDT 2011


Greetings

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:

import std.bitmanip;
shared BitArray foo;
void main() {
  foo ~= true; // this does not work
  (cast(BitArray)foo) ~= true; // Even casting does not help
}


I know that "shared" is a relatively new qualifier in D2. Are there plans to
make Phobos "shared" compatible?
Are there any workarounds that I am missing.

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110315/ea5e4b2e/attachment.html>


More information about the Digitalmars-d mailing list