Liste des Groupes | Revenir à cl c |
On 12/03/2024 01:20, Keith Thompson wrote:[...]Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:
If I withdraw 20 pounds from my bank, I'll bet you that 20 poundsNo, it's an analogy. You run lots of apps gobbling lots of memory, and
that the bank still checks whether it has the money. I'd rather
write correct code than code that almost certainly happens to work.
Sure, strdup() is unlikely to fail-- but I'm going to check the
result.
And how often do banks fail, actually, and how often does governmentThe government isn't going to intervene when your laptop is running
take action when it's heading that way, but nowhere near failing yet?
low on memory.
maybe a program won't launch or thngs start to slow or a warning comes
up, and you realise that soon the program of interest might run out of
memory, and so you shut other things down so that that doesn't happen.
And so it's pretty rare to actually run out of memory unless the
program isn't correct and there is a leak.
Les messages affichés proviennent d'usenet.