string initialization question.

bearophile bearophileHUGS at lycos.com
Fri Jul 30 13:13:03 PDT 2010


Jonathan M Davis:
> a makeArray() function would have exactly the same tools that you have to create 
> an array of all the same value. So, it's not going to be any more efficient that 
> what you can do.

Doesn't the D2 GC give you a lower level function to GC-allocate uninitialized memory? The GC in D1 has such function, so in D1 it's easy to create a makeArray().

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list