How to suppress "val it" output?

View: New views
2 Messages — Rating Filter:   Alert me  

How to suppress "val it" output?

by Barry Brown :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm writing an SML/NJ script to customize the interpreter environment they way I like it. The last thing the script does is display a confirmation message. Something like this:

print "SML is ready.\n";

When I execute the script, I get a "val it" output that I'd like to suppress:

SML is ready.
val it = () : unit
-

For the purposes of printing some text, how can I disable displaying the "val it" return value?

Re: How to suppress "val it" output?

by John Reppy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try

        val () = print "SML is ready\n";

On Aug 13, 2009, at 10:43 PM, Barry Brown wrote:

>
> I'm writing an SML/NJ script to customize the interpreter  
> environment they
> way I like it. The last thing the script does is display a  
> confirmation
> message. Something like this:
>
> print "SML is ready.\n";
>
> When I execute the script, I get a "val it" output that I'd like to
> suppress:
>
> SML is ready.
> val it = () : unit
> -
>
> For the purposes of printing some text, how can I disable displaying  
> the
> "val it" return value?
> --
> View this message in context: http://www.nabble.com/How-to-suppress-%22val-it%22-output--tp24965599p24965599.html
> Sent from the SML/NJ mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Smlnj-list mailing list
> Smlnj-list@...
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Smlnj-list mailing list
Smlnj-list@...
https://lists.sourceforge.net/lists/listinfo/smlnj-list