Re: crash_message()
- Posted by Robert Craig <rds at ATTCANADA.NET> Feb 27, 2000
- 455 views
Jiri Babor writes: > What I really meant in my previous message was, that I > would prefer to use the interpreter location routine with a > simple abort(), instead of artificially inducing silly errors > to get the location through the standard error mechanism. I'll consider it. I guess it would let you implement a kind of C assert() statement. e.g. assert(x < 100) where you print a message with the offending file and line number when the assert fails. Of course, procedure assert(integer x) if not x then ? 1/0 end if end procedure would be almost as good. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com