Re: silent exceptions !!

John Reppy <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
When running a heap image as a command-line program, the default  
exception
handler just exits with a non-zero exit code.  If you want a message,  
it is
easy enough to add your own handler (I usually use the exnHistory  
mechanism
to give a backtrace).

     - John

On Oct 18, 2005, at 11:43 PM, brian denheyer wrote:

> I've was running a program as a heap image and ran into a bit of a  
> problem.  It seems that unhandled exceptions don't do anything,  
> i.e. the program stops and there is no message of any sort.
>
> Doesn't that kind of defeat the purpose of having something called  
> an exception ?
>
> Why doesn't SML include a default handler for exceptions when using  
> the heap image ?
>
> This is probably in the FAQ isn't it ? :-)
>
>
> Brian
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads,  
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>
>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.