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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 938, Thu Sep 20 21:27:33 2001 UTC revision 939, Tue Sep 25 19:25:48 2001 UTC
# Line 1  Line 1 
1  (* (C) 1999 Lucent Technologies, Bell Laboratories *)  (* (C) 1999 Lucent Technologies, Bell Laboratories *)
2    
3  structure ExnInfoHook = struct  structure ExnInfoHook = struct
4        val exnName : PrimTypes.exn -> PrimTypes.string =
5            InlineT.cast (fn (PrimTypes.ref s, _, _) => s)
6      local      local
7          fun dummy (e: PrimTypes.exn) = "exception (?)"          fun dummy (e: PrimTypes.exn) =
8                PreString.concat2
9                    (exnName e,
10                     " (more info unavailable: ExnInfoHook not initialized)")
11      in      in
         val exnNameHook = PrimTypes.ref dummy  
12          val exnMessageHook = PrimTypes.ref dummy          val exnMessageHook = PrimTypes.ref dummy
         fun exnName e = InlineT.! exnNameHook e  
13          fun exnMessage e = InlineT.! exnMessageHook e          fun exnMessage e = InlineT.! exnMessageHook e
14      end      end
15  end  end

Legend:
Removed from v.938  
changed lines
  Added in v.939

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