You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was confused by the existence of rjd_mem_alloc_array and rjd_array_alloc
I think the confusion is between mem_array and array. Which one should I use when? From reading the code it looks like mem_*_array is an implementation detail of the array functions and so it shouldn't be used explicitly.... But I say that with only a cursory glance at the code.
Hmm... You could go the other route and have the default mem_alloc require nitems and itemsize like calloc.
If a user wants a "block" of generic bytes you could have a mem_alloc_block(numbytes)
I like reserving the array keyword for interactions with the dynamic array
The text was updated successfully, but these errors were encountered:
Some feedback from Chad:
The text was updated successfully, but these errors were encountered: