www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: The Many Faces of D - slides

 Page 30: that little concurrent test program gives me an error:
 ...\dmd\src\phobos\std\typecons.d(336): Error: no property 'length' for type
'immutable(char)'

A reduced test case: import std.concurrency: spawn, send; void foo() {} void main() { foreach (b; [cast(immutable(ubyte)[])[1]]) send(spawn(&foo), b); } Bye, bearophile
Oct 03 2010