static array length

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Jan 31 06:00:41 PST 2008


"Saaa" <empty at needmail.com> wrote in message 
news:fnsgfv$1gti$1 at digitalmars.com...
>
> Ok, thanks :)
> that just leaves me with a good way to do this:
>
> char[100] c;
> c[0..4]=`1234`;
> writefln(c);

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




More information about the Digitalmars-d-learn mailing list