Timothy Weber wrote: > Andre Abelian wrote: >> Suppose array is 5 byte long > >> Array[5]; // that doesn't exist what do you expect compiler to do? > >> My question is what do you expect for compiler to do? It is a compiler >> bug or typo? > > I wouldn't expect the compiler to save me from this, in C or C++ at > least. I don't think I've ever seen one that would. In C++ (other when the added overhead really matters, confirmed by careful checking or profiling) I wouldn't use C-style arrays at all. C++ has safe arrays (std::vector). Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist