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

View of /sml/branches/primop-branch-gkuan/cm/util/say.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2787 - (download) (annotate)
Sat Sep 29 05:18:54 2007 UTC (13 years, 6 months ago) by gkuan
File size: 557 byte(s)
Creating private branch of sml/branches/primop-branch-3 for experimental Translate rewrite
 * 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

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

ViewVC Help
Powered by ViewVC 1.0.0