Re: shared immutable issues

2012-07-24 Thread Jonathan M Davis
On Tuesday, July 24, 2012 11:08:06 Enerqi wrote: > Thanks for the feedback guys. Casting away shared before usage > works. The situation really needs to be improved, but that's pretty much what you're forced to do right now. - Jonathan m Davis

Re: shared immutable issues

2012-07-24 Thread Enerqi
Thanks for the feedback guys. Casting away shared before usage works. On Monday, 23 July 2012 at 21:02:23 UTC, Jonathan M Davis wrote: On Monday, July 23, 2012 10:37:03 Ali Çehreli wrote: Appender does cast(Unqual!(T)) which removes the 'shared' qualifier. I think that should be considered a

Re: shared immutable issues

2012-07-23 Thread Jonathan M Davis
On Monday, July 23, 2012 10:37:03 Ali Çehreli wrote: > Appender does cast(Unqual!(T)) which removes the 'shared' qualifier. I > think that should be considered a bug with Appender. Unqual is used all over the place in Phobos to remove const. I don't think that shared is considered much at all at

Re: shared immutable issues

2012-07-23 Thread Ali Çehreli
On 07/23/2012 10:21 AM, Enerqi wrote: > Hi > > I'm wondering what the state of the language/libraries are with regard > to shared/immutable qualifiers. I've tried to use std.concurrency and > had a lot of compile issues passing shared data around. > Even a simple case I'm finding issue with: > > -

shared immutable issues

2012-07-23 Thread Enerqi
Hi I'm wondering what the state of the language/libraries are with regard to shared/immutable qualifiers. I've tried to use std.concurrency and had a lot of compile issues passing shared data around. Even a simple case I'm finding issue with: - import std.array; int main(string[] ar