I'm not certain whether LD_PRELOAD (or dynamic linking in general) constitute "redefining" standard library functions according to the C standard, but that seems like another ship that has sailed in practice.
No, it merely enforces that the application can't depend on (the random undocumented properties of) any stdlib implementation.
-
-
Can you clarify what specifically you mean by "can't" here? I'll pick this up in the morrow.
-
That doing so does not satisfy the promise to the compiler through attr-const.
-
OK, and I imagine we agree that the consequences of that should be "ill-formed program that the compiler couldn't catch at compile time."
-
I don't agree that the compiler can choose parts of "the implementation" that are outside its control adversarially to induce such consequences, however. And I think that down that road lies madness and useless compilers.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.