static array length

Jarrett Billingsley kb3ctd2 at yahoo.com
Thu Jan 31 11:33:58 PST 2008


"Saaa" <empty at needmail.com> wrote in message 
news:fnsmjb$1vsq$1 at digitalmars.com...
> 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;
> }

So, in other words, you're re-implementing dynamic arrays?

What I'm wondering is why you need this?  What is it that you're trying to 
do? 




More information about the Digitalmars-d-learn mailing list