static array length

Saaa empty at needmail.com
Thu Jan 31 04:56:29 PST 2008


Ok, thanks :)
that just leaves me with a good way to do this:

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

> Saaa wrote:
>> Are you sure about this?
>> Because I can do:
>> writefln(c.length);
>
> If you disassemble it, it might be:
> writefln(some_integer_constant); 




More information about the Digitalmars-d-learn mailing list