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/cm/util/say.sml
ViewVC logotype

View of /sml/trunk/src/cm/util/say.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 879 - (download) (annotate)
Thu Jul 19 18:59:38 2001 UTC (18 years ago) by blume
File size: 557 byte(s)
extensive organizational changes
(*
 * Output of feedback and diagnostics.
 *
 *   Copyright (c) 1999 by Lucent Technologies, Bell Laboratories.
 *
 * author: Matthias Blume (blume@cs.princeton.edu)
 *)
signature SAY = sig
    val say: string list -> unit
    val vsay: string list -> unit
    val dsay: string list -> unit
end

structure Say :> SAY = struct

    structure Print = Control.Print

    fun say l = (Print.say (concat l); Print.flush ())

    fun csay { get, set } l = if get () then say l else ()
    val vsay = csay StdConfig.verbose
    val dsay = csay StdConfig.debug
end

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