Like I said earlier, it's technically possible to construct such a thing. It is also technically possible to build a Television with all wires un-insulated, exposing tens of kilovolts to anyone getting near it. Neither is very desirable or necessary in any way.
If you want to continue discussing this matter, perhaps you can come up with a working example of using qsort() where the compare callback is actually doing something where it throws an exception for a valid reason.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
As discussed earlier, you should not call C++ code from C where the C++ code throws (and doesn't catch) - it is undefined behaviour - if it happens to work on one system, it's not guaranteed to happen in another system.
Is that clear enough?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.