On 12/26/22 08:50, Bruno Haible wrote:
For compilers other than GCC and clang, we are betting on a trick with
'volatile'. I'm not sure it won't break in the future. But at least for
now, with MSVC, the unit tests still pass.

Thanks for doing the unit tests. Yes, the hope is that this good is good enough for today's compilers, and that tomorrow's compilers will implement C23 memset_explicit anyway so this code will be irrelevant.

Given the underlying hardware issues, memset_explicit is best-effort anyway. (Plus, you should see how Emacs misuses it! Oh my. I suggested an improvement for that but there were objections and I haven't had the time or patience to wade through it.)


Reply via email to