Old Wolf said:
Why the above statement if You do not believe that C++ should throw in case
of accessing a null pointer? That is how i took and - until i saw your "we
all know that" remark later.
Please note that i have not in any post (in this thread or elsewhere)
indicated that the throw was sensible.
Yes, we all know that. What has that got to do with whether it is
laughable to capture null pointer exceptions? So I snipped parts
related to that.
It is not so laughable to catch these if they are thrown, is it? There are
situations where a catch (...) is justified and in these situations you
will - with a given configuration of some compilers - catch null pointer
exceptions and stuff like that.
I repeat the assertion of Steven T. Hatton:
I agree, you seem to disagree, why? (The fact that null pointer
exceptions exist does not imply that catching them is not laughable).
Well - let us just agree that our sense of humour differs, then ;-)
Peter