Home » Community » Coffee corner » Raise Exception instead of ASSERT for container
| Raise Exception instead of ASSERT for container [message #12035] |
Tue, 09 October 2007 11:03  |
benoitc
Messages: 17 Registered: July 2007 Location: Nice (France)
|
Promising Member |
|
|
Hi All,
I think that it will be better (at least for me) to let container raising an exception during out of bound access (like in Java) instead of an assert.
Today we need to check index before any access to array element and thus we cannot easily use double indirection like array[i][j].
What do you think about that? Does that sound stupid?
Regards,
Benoit
|
|
|
|
Goto Forum:
Current Time: Mon Nov 03 20:35:22 CET 2025
Total time taken to generate the page: 0.07078 seconds
|