[MLton-user] Stack Traces

Vesa Karvonen vesa.a.j.k at gmail.com
Fri Mar 23 00:12:52 PST 2007


Looking at the MLton structure, there seems to be CallStack
substructure (not documented in the wiki) that might do what
you want (I've never used it, I just print out the stack trace
using MLton.Exn.history in an exception handler). See here:
  http://mlton.org/cgi-bin/viewsvn.cgi/mlton/trunk/basis-library/mlton/mlton.sig?view=auto
  http://mlton.org/cgi-bin/viewsvn.cgi/mlton/trunk/basis-library/mlton/call-stack.sig?view=auto

-Vesa Karvonen

On 3/23/07, Neal Glew <neal at glew.name> wrote:
> I'm about to throw an exception and I want to print out a stack trace
> (ie, list of all frames on the call stack and which function and line
> number they are in).  What is the best way to do this in MLton?
>
> Neal



More information about the MLton-user mailing list