allow on stack with betterC

Tony tonytdominguez at aol.com
Tue Oct 23 11:33:03 UTC 2018


On Tuesday, 23 October 2018 at 05:36:00 UTC, test wrote:
> On Tuesday, 23 October 2018 at 05:32:14 UTC, rikki cattermole 
> wrote:
>>
>> Yup, call malloc or do the allocation on the stack just like 
>> in C.
>
> correct if I am wrong,  I think malloc is on heap and is very 
> slow.

new is also on the heap. I would guess the speed of new and 
malloc is very similar.



More information about the Digitalmars-d-learn mailing list