static array length

Saaa empty at needmail.com
Thu Jan 31 06:40:41 PST 2008


If I'd know the lenght I would just do :)

c[0 .. 4] = `1234`;
writefln( c[0 .. 4]);

I'm looking into making use of:
struct charS{
    char c;
    int leng;
}


>
> c[0 .. 4] = `1234`;
> char[] d = c[0 .. 4];
> writefln(d);
> 




More information about the Digitalmars-d-learn mailing list