Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/system/smlnj/init/exn-info-hook.sml
ViewVC logotype

Annotation of /sml/trunk/src/system/smlnj/init/exn-info-hook.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 939 - (view) (download)

1 : blume 573 (* (C) 1999 Lucent Technologies, Bell Laboratories *)
2 :    
3 :     structure ExnInfoHook = struct
4 : blume 939 val exnName : PrimTypes.exn -> PrimTypes.string =
5 :     InlineT.cast (fn (PrimTypes.ref s, _, _) => s)
6 : blume 573 local
7 : blume 939 fun dummy (e: PrimTypes.exn) =
8 :     PreString.concat2
9 :     (exnName e,
10 :     " (more info unavailable: ExnInfoHook not initialized)")
11 : blume 573 in
12 :     val exnMessageHook = PrimTypes.ref dummy
13 :     fun exnMessage e = InlineT.! exnMessageHook e
14 :     end
15 :     end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0