Re: procedures calling procedure calling procedure...
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 15, 2002
- 401 views
Pete Lomax writes: > PS Rob, routine_id("rubbish") currently returns -1 > (assuming of course that no procedure or function > rubbish has been defined). > > What chances of an error/warning message instead? > > I feel a minor spelling mistake can cause major headaches in this > case. By returning -1, I give you the chance to test for the existence of a routine, and take some action if it doesn't exist. You can at least issue your own error message and shut down gracefully. Maybe most people would prefer to just fail on the spot. In any case, if you continue, and use the -1 in a call_proc or call_func, you'll get an error message. I think it's too late to change this now, and I don't think there are really "major headaches" in most cases. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com