Thread (1 message) 1 message, 1 author, 2021-10-15

Re: To "const char *" and cast on free(), or "char *" and no cast...

From: Junio C Hamano <hidden>
Date: 2021-10-15 16:00:23

Phillip Wood [off-list ref] writes:
If it was just the destructor that was free()'ing the values I'd agree
but the struct gets mutated in other places as well.
Oh, if the members are meant to be mutated by the users (as opposed
to the implementation) of the API around the type, I would agree
that we'd be much better off having them non-const.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help