digitalmars.D - Re: The Many Faces of D - slides
- bearophile <bearophileHUGS lycos.com> Oct 03 2010
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