Re: Problem with receiveOnly and classes

2012-04-01 Thread Ghislain
Either way, I once tried to pass over ownership of trees of objects to other threads but gave up on that. I don't think std.concurrency and D really can work like that. (?) Concurrency seems to work much better when you pass messages and data, structs are fine, and then build object trees

Problem passing objects between threads

2012-03-27 Thread Ghislain
Hello, This question was posted in D.learn, but did not receive any answer. I apologize if this is not the right place to post. I need to pass objects of a hierarchy between threads and I have some troubles. The sample code below displays: Unknown B.fun() I do not understand why an object of

Problem with receiveOnly and classes

2012-03-25 Thread Ghislain
Hello, I need to pass objects of a hierarchy between threads and I have some troubles. The sample code below displays: Unknown B.fun() I do not understand why an object of type A is fetched as a Variant, while a object of type B is received correctly. Instead of (A a){a.fun();} I