Re: Request for feature

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu