GC.calloc

David d at dav1d.de
Thu Jul 18 02:55:39 PDT 2013


Am 18.07.2013 00:42, schrieb H. S. Teoh:
> On Thu, Jul 18, 2013 at 12:38:37AM +0200, David wrote:
>>> C does not have a native GC. I think expecting GC.calloc to be the
>>> same as stdc.calloc is fallacious. But I agree that perhaps "calloc"
>>> isn't a good name for the GC method.
>>>
>>>
>>> T
>>
>> Why not, it's exactly named like calloc, same with malloc, qalloc and
>> free?
> [...]
> 
> Naming it as "calloc" gives the false impression that perhaps it's
> equivalent to C's calloc, which is not true. Which is probably why
> you're complaining about the different order of parameters. :)
> 
> 
> T
> 
Exactly if something is named like the C function it should behave like it.


More information about the Digitalmars-d mailing list