|
redleader posted:good thread op They can in many cases. But there are some categories of undefined behavior where the compiler just doesn't know if a particular construction is going to be undefined behavior in practice, and it's not reasonable to emit a warning in cases that may or may not be undefined behavior. For example, it would not be useful if the compiler threw a "potentially undefined behavior" warning any time you did arithmetic on a signed value.
|
# ¿ Jun 28, 2017 10:00 |
|
|
# ¿ May 13, 2024 15:55 |
|
MALE SHOEGAZE posted:yeah it seems like you shouldn't be able to unlink /dev/null without root access. you can't. that purpose of that change seems to be about making it possible to run the build script as root. not sure why that's a desirable thing to support.
|
# ¿ Jul 10, 2017 19:06 |
|
<T extends HotMess<OfShit>> void doStuff() { T thing = getThing() } You might need to have a parameter or something that actually uses that type, idk. And you're really just punting the problem up to whatever calls this method.
|
# ¿ Aug 4, 2017 09:54 |