The Many Faces of D - slides

bearophile bearophileHUGS at lycos.com
Sun Oct 3 12:44:24 PDT 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


More information about the Digitalmars-d mailing list