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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 939 - (download) (annotate)
Tue Sep 25 19:25:48 2001 UTC (18 years, 10 months ago) by blume
File size: 435 byte(s)
made exnName and exnMessage a bit more robust wrt. ml-build
(* (C) 1999 Lucent Technologies, Bell Laboratories *)

structure ExnInfoHook = struct
    val exnName : PrimTypes.exn -> PrimTypes.string =
	InlineT.cast (fn (PrimTypes.ref s, _, _) => s)
    local
	fun dummy (e: PrimTypes.exn) =
	    PreString.concat2
		(exnName e,
		 " (more info unavailable: ExnInfoHook not initialized)")
    in
	val exnMessageHook = PrimTypes.ref dummy
	fun exnMessage e = InlineT.! exnMessageHook e
    end
end

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