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
We already talked a bit about array_free. I think the caller should be responsible for setting pointer to an array to NULL after freeing it, not array_free itself. I think we should keep standard C semantics.
// caller
array_free(replica);
replica = NULL;
And array_free should not accept pointer to a pointer to struct Array as it does now, but just pointer to struct Array (or just Array because of typedef) as other array_* functions:
We already talked a bit about
array_free
. I think the caller should be responsible for setting pointer to an array toNULL
after freeing it, notarray_free
itself. I think we should keep standard C semantics.And
array_free
should not accept pointer to a pointer tostruct Array
as it does now, but just pointer tostruct Array
(or justArray
because of typedef) as otherarray_*
functions:Originally posted by @zilder in #57 (comment)
The text was updated successfully, but these errors were encountered: