SM Ryan
<wy*****@tango-sierra-oscar-foxtrot-tango-dot-charlie-oscar-mike.fake.org>
wrote:
# Which is not an ISO C function.
#
# > In other words, there's ample opportunity for every program to detect
# > the low-memory condition and take appropriate action,
#
# Provided they are not ISO C programs.
#
# In other words, programs portable nowhere else but to AIX have a
# fighting chance. Correct, portable, ISO C programs are the first to be
# dumped unceremoniously in the dunghill. Is this supposed to make me feel
# happier about it?
What a whiner. Until we finish the Cray-INF with unlimited virtual memory,
how best to deal with running out of resources? Unceremoniously kill
everyone because that way we get uniform behaviour? Or give programs
an opportunity for a graceful exit, if they choose to exploit it?
The latter. And therefore, when you can't give a program the memory it
asks for, you have it _return a null pointer_, not pretend to be in
happy-happy land and _then_ unceremoniously kill it or random other
programs just because you can.
Richard