std.concurrency.thisTid.send() feat. immutable(struct with several arrays)

Alexandr Druzhinin drug2004 at bk.ru
Tue Feb 26 22:46:59 PST 2013


27.02.2013 13:19, Alexandr Druzhinin пишет:
> This code doesn't compiles http://dpaste.dzfl.pl/706a0d12
> But if you comment one of arrays it will do. I take a look at varaint.d
> but can't understand why two arrays cause this error.
> How can I send immutable struct that contains two or more arrays without
> any serializing?
I've done it using pointer to the structure

thisTid.send(&test_var);

but using pointers isn't good practice and if somebody explain the 
reason of compiler complaining it would be great.

thank in advance


More information about the Digitalmars-d-learn mailing list