Re: std.concurrency & immutable classes...

2011-02-14 Thread Steven Schveighoffer
On Fri, 11 Feb 2011 17:08:26 -0500, Tomek Sowiński wrote: Steven Schveighoffer napisał: > It would be much easier if he provided the specific case(s) which broke > his teeth. Then we'll all know where's the problem. If it's soluble, > it'll open the door to tail type modifiers in general, n

Re: std.concurrency & immutable classes...

2011-02-11 Thread Tomek Sowiński
Steven Schveighoffer napisał: > > It would be much easier if he provided the specific case(s) which broke > > his teeth. Then we'll all know where's the problem. If it's soluble, > > it'll open the door to tail type modifiers in general, not just in > > classes. It's a burning issue e.g. wit

Re: std.concurrency & immutable classes...

2011-02-11 Thread Michel Fortin
On 2011-02-10 14:45:14 -0500, Tomek Sowiński said: Michel Fortin napisał: Thanks for doing this. Is it approved by Walter? Depends on what you mean by "approved". He commented once on the newsgroup after I posted an earlier version of the patch, saying I should add tests for type deduction

Re: std.concurrency & immutable classes...

2011-02-10 Thread Steven Schveighoffer
On Thu, 10 Feb 2011 14:45:14 -0500, Tomek Sowiński wrote: Michel Fortin napisał: > Thanks for doing this. Is it approved by Walter? Depends on what you mean by "approved". He commented once on the newsgroup after I posted an earlier version of the patch, saying I should add tests for type d

Re: std.concurrency & immutable classes...

2011-02-10 Thread Tomek Sowiński
Michel Fortin napisał: > > Thanks for doing this. Is it approved by Walter? > > Depends on what you mean by "approved". > > He commented once on the newsgroup after I posted an earlier version of > the patch, saying I should add tests for type deduction and some other > stuff. This change hi

Re: std.concurrency & immutable classes...

2011-02-07 Thread Michel Fortin
On 2011-02-07 17:11:08 -0500, Tomek Sowiński said: Michel Fortin napisał: I just made this pull request today: If you want to test it, you're very welcome. Here is my development branch for this feature:

Re: std.concurrency & immutable classes...

2011-02-07 Thread Tomek Sowiński
Michel Fortin napisał: > I just made this pull request today: > > > If you want to test it, you're very welcome. Here is my development > branch for this feature: > Thanks for doing this

Re: std.concurrency & immutable classes...

2011-02-06 Thread Michel Fortin
On 2011-02-06 20:09:56 -0500, Michel Fortin said: I just made this pull request today: That should have been: -- Michel Fortin michel.for...@michelf.com http://michelf.com/

Re: std.concurrency & immutable classes...

2011-02-06 Thread Michel Fortin
On 2011-02-06 16:55:36 -0500, Tomek Sowiński said: ... doesn't work. class C {} thisTid.send(new immutable(C)()); receive((immutable C) { writeln("got it!"); }); This throws: core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285): immutable(C) And when I go for Rebindable

Re: std.concurrency & immutable classes...

2011-02-06 Thread Jonathan M Davis
On Sunday 06 February 2011 13:55:36 Tomek Sowiński wrote: > ... doesn't work. > > class C {} > thisTid.send(new immutable(C)()); > receive((immutable C) { writeln("got it!"); }); > > This throws: > core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285): > immutable(C) > > And wh

std.concurrency & immutable classes...

2011-02-06 Thread Tomek Sowiński
... doesn't work. class C {} thisTid.send(new immutable(C)()); receive((immutable C) { writeln("got it!"); }); This throws: core.exception.AssertError@/usr/include/d/dmd/phobos/std/variant.d(285): immutable(C) And when I go for Rebindable, I get "Aliases to mutable thread-local data not allow