Mehrdad: >> On the note of casting away const, I don't believe that is the >> operation which is undefined, however modifying const is >> undefined as it could be pointing to immutable data. > > Oh, then that's not what I'd understood. Seems just like C++ > then. Are you sure? bye, bearophile