Automatic void initialization

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Jun 2 11:07:29 PDT 2009


Jarrett Billingsley wrote:
> I thought I remember seeing a runtime function to allocate an array
> without initializing it.. maybe it's just not used yet?

Oh, the function's there. It's just not used for that purpose :P.

It's used for array concatenations and array literals, where the compiler can 
tell from a single expression that the default initialization will always be 
useless since it'll be overwritten immediately.



More information about the Digitalmars-d mailing list