Graham St Jack: > Yes, I agree that checking all the time would be too expensive.
I agree that other solutions have to be adopted first, runtime tests are the last thing to try. But I think Andrei doesn't know how much expensive that would be. --------------------- Walter: > 1. Yes it is meaningful - depending on what you're doing. I am not sure. > 2. Such a runtime test is expensive in terms of performance and code bloat. I have not seen even synthetic benchmarks about this. Bye, bearophile