GC.calloc

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jul 17 17:21:27 PDT 2013


On 7/17/13 1:33 PM, bearophile wrote:
> Sean Kelly:
>
>> I'd like to eliminate GC.calloc entirely. I'd rather have an
>> allocation routine that takes a TypeInfo and uses that to initialize
>> the block rather than just doing a memset(0) as per calloc.
>
> I think both are needed. The GC calloc is probably handy in some cases.

I don't find it all that useful as it's really an allocation followed by 
a fill.

Andrei




More information about the Digitalmars-d mailing list