Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Raise Exception instead of ASSERT for container
Re: Raise Exception instead of ASSERT for container [message #12040 is a reply to message #12035] Tue, 09 October 2007 14:46 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
benoitc wrote on Tue, 09 October 2007 05:03

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.



I guess the idea is that invalid index is program logic problem - nothing that should be resolved by exception.

Quote:


Today we need to check index before any access to array element and thus we cannot easily use double indirection like array[i][j].



How would exception help with double indirection here? (scratching my head... Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: downloadable U++ manual
Next Topic: Vista.....
Goto Forum:
  


Current Time: Thu May 09 19:40:58 CEST 2024

Total time taken to generate the page: 0.02304 seconds