Re: whither stack traces?
Matthias Blume <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Hi Dave,
try using General.exnMessage instead of plain exnMessage.
(The problem you are seeing is caused by some limitations to
the way CM handles the compilation of the Basis library --
especially bindings that are available at toplevel, i.e., not
within modules.)
Matthias
On Nov 29, 2006, at 7:53 AM, Dave Herman wrote:
> Vesa Karvonen wrote:
>
>> Did you try General.exnMessage:
>
> John Reppy wrote:
>
>> The SML'97 basis functions exnName and exnMessage are probably
>> being used for this purpose.
>
> I tried that with the following code:
>
> fun printStackTrace e =
> let val ss = SMLofNJ.exnHistory e
> in
> print ("uncaught exception " ^ (exnMessage e) ^ "\n");
> app (fn s => print ("\t" ^ s ^ "\n")) ss
> end
>
> and got this output:
>
> uncaught exception Match (more info unavailable: ExnInfoHook not
> initialized)
> main.sml:6.46
>
> I had no luck finding information about ExnInfoHook. Google doesn't
> know
> it. :)
>
> Thanks,
> Dave
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV