Re: Request for feature
- Posted by CChris <christian.cuvier at ?gricu?ture.gouv.fr> Dec 27, 2007
- 499 views
Derek Parnell wrote: > > Greg Haberek wrote: > > I'd like to see a crash() routine that forcibly crashes the app ... > > This has my support. > > Maybe the existing abort() routine can do this as it already ends a program > immediately. If passed a string rather than an integer it would do the trace > dump and ex.err thing then end the program. > > e.g. > }}} <eucode> > if i = 5 then > abort("I can't possibly be five") > end if > > > -- > Derek Parnell > Melbourne, Australia > Skype name: derek.j.parnell Sure, abort() is here already, so let's extend it: * abort(msg_string) would display msg_string and do an abort(-1); * abort({string,ret_val}) would display msg_string and do an abort(ret_val). How about that? CChris