From cs457list-approval@cs.pdx.edu Wed Apr  9 17:52:41 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id RAA07899
	for cs457list-outgoing; Wed, 9 Apr 1997 17:52:22 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id RAA07895;
	Wed, 9 Apr 1997 17:52:11 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id RAA22718;
	Wed, 9 Apr 1997 17:52:10 -0700 (PDT)
Date: Wed, 9 Apr 1997 17:52:10 -0700 (PDT)
Message-Id: <199704100052.RAA22718@pleiades.cs.pdx.edu>
To: kgh@plaza.ds.adp.com
Subject: Re:  Trouble Viewing From Webb
Cc: cs457list@cs.pdx.edu
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

For those of you who lack an easy means to view or print postscript,
I've added "plain text" versions of the lecture notes to the web page.
These are not elegant, and are sometimes inaccurate (they lack the
mathematical symbols, for example!), but should be better than nothing.
I'll work on making other forms available, e.g., as html.  Meanwhile,
you can use the CS dept. machines to read or print the notes...

	From kgh@plaza.ds.adp.com Wed Apr  9 13:58:45 1997
	Received: from myst.plaza.ds.adp.com (myst.plaza.ds.adp.com [139.126.16.198])
		by cs.pdx.edu (8.8.5/8.8.5) with SMTP id NAA00983
		for <apt@cs.pdx.edu>; Wed, 9 Apr 1997 13:58:40 -0700 (PDT)
	Received: from sumo (sumo.plaza.ds.adp.com [139.126.20.14]) by myst.plaza.ds.adp.com (8.6.9/8.6.9) with SMTP id NAA00641 for <apt@cs.pdx.edu>; Wed, 9 Apr 1997 13:59:11 -0700
	Received: from snowman by sumo (Automatic Data Processing Dealer Services/1.1)
		id AA17444; Wed, 9 Apr 97 13:57:31 -0700
	Message-Id: <2.2.32.19970409204939.006aa9b8@sumo>
	X-Sender: kgh@sumo
	X-Mailer: Windows Eudora Pro Version 2.2 (32)
	Mime-Version: 1.0
	Content-Type: text/plain; charset="us-ascii"
	Date: Wed, 09 Apr 1997 13:49:39 -0700
	To: apt@cs.pdx.edu
	From: Kevin Hogan <kgh@plaza.ds.adp.com>
	Subject: Trouble Viewing From Webb
	Status: RO

	Professor Tolmach,

	I am having difficulty viewing/printing the 'postscript' documents from our
	class web site.  I am using netscape 2.01 and there is no plugin available
	to view the ps files.  I used Word 7.0, but the document text is smattered
	with postscript codes.  Any suggestions?

	Kevin Hogan
	294-5848
	---

	kgh@plaza.ds.adp.com
	(503) 294-5848



From cs457list-approval@cs.pdx.edu Mon Apr 14 08:52:24 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id IAA09900
	for cs457list-outgoing; Mon, 14 Apr 1997 08:52:05 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id IAA09885;
	Mon, 14 Apr 1997 08:51:58 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id IAA09424;
	Mon, 14 Apr 1997 08:51:57 -0700 (PDT)
Date: Mon, 14 Apr 1997 08:51:57 -0700 (PDT)
Message-Id: <199704141551.IAA09424@pleiades.cs.pdx.edu>
To: makg@cs.pdx.edu
Subject: Re:  Queries
Cc: cs457list@cs.pdx.edu
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

The problem you have is a subtle one: "as" is a keyword, so cannot
be used as a variable name.  Ullman does mention this, I believe...

	From makg@cs.pdx.edu Sun Apr 13 23:36:47 1997
	Received: from sirius.cs.pdx.edu (makg@sirius.cs.pdx.edu [204.203.64.13])
		by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id XAA02342
		for <apt@cs.pdx.edu>; Sun, 13 Apr 1997 23:36:46 -0700 (PDT)
	Received: (from makg@localhost)
		by sirius.cs.pdx.edu (8.8.5/8.8.5) id XAA09588;
		Sun, 13 Apr 1997 23:36:45 -0700 (PDT)
	Date: Sun, 13 Apr 1997 23:36:45 -0700 (PDT)
	From: Ginny Mak <makg@cs.pdx.edu>
	To: apt@cs.pdx.edu
	Subject: Queries
	Message-ID: <Pine.SUN.3.91.970413232608.9387A-100000@sirius.cs.pdx.edu>
	MIME-Version: 1.0
	Content-Type: TEXT/PLAIN; charset=US-ASCII
	Status: R

	Dr. Tolmach:

	I have problems understanding the error message of sml, especially those 
	of syntax error.  I wasted a lot of time trying to find out what the 
	errors mean and got very little done in terms of trying out some 
	functions I wrote.  For example I wrote a function cycle
	fun cycle (0,L) = L
		| cycle(i, nil) = nil
		| cycle(i, a::as) = cycle(i-1, as @ [a]);

	I got the error message, "syntax error at RPAREN"  I can't see the syntax 
	error.  

	Is there any way to grasp quickly what the error messages mean?  Because 
	of this, I have not gone very far in trying out some functions I wrote.

	Thank you very much.



From cs457list-approval@cs.pdx.edu Tue Apr 15 13:38:16 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id NAA24129
	for cs457list-outgoing; Tue, 15 Apr 1997 13:38:07 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id NAA24121
	for <cs457list@cs.pdx.edu>; Tue, 15 Apr 1997 13:38:01 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id NAA13021
	for cs457list; Tue, 15 Apr 1997 13:38:00 -0700 (PDT)
Date: Tue, 15 Apr 1997 13:38:00 -0700 (PDT)
Message-Id: <199704152038.NAA13021@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: cs457exercises
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

I've put a web page pointer to suggested solutions for those suggested
exercises that lack an answer in the back of the book.

If you have any further questions about these exercises, please let
me know in class or by email; I'm happy to discuss them in class
or individually.

In addition, you'll find a large new set of suggested exercises on
the web page.

From cs457list-approval@cs.pdx.edu Tue Apr 22 12:50:20 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id MAA26675
	for cs457list-outgoing; Tue, 22 Apr 1997 12:50:05 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id MAA26671
	for <cs457list@cs.pdx.edu>; Tue, 22 Apr 1997 12:50:01 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id MAA15642
	for cs457list; Tue, 22 Apr 1997 12:50:00 -0700 (PDT)
Date: Tue, 22 Apr 1997 12:50:00 -0700 (PDT)
Message-Id: <199704221950.MAA15642@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: exam coverage
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

The first in-class exam, next Tuesday April 29, will cover somewhat
less material than the syllabus said.  The revised list of relevant
chapters is as follows:`

Reade Ch. 1-4 (NOT Ch. 5)
Ullman Chs. 1-7, 10-11, 19, 21  (NOT Ch. 12-13)

In other words, the topic of concrete user-defined types is being omitted
(until next time!)

From cs457list-approval@cs.pdx.edu Thu Apr 24 15:46:58 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id PAA28607
	for cs457list-outgoing; Thu, 24 Apr 1997 15:46:54 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id PAA28603
	for <cs457list@cs.pdx.edu>; Thu, 24 Apr 1997 15:46:50 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id PAA18991
	for cs457list; Thu, 24 Apr 1997 15:46:49 -0700 (PDT)
Date: Thu, 24 Apr 1997 15:46:49 -0700 (PDT)
Message-Id: <199704242246.PAA18991@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: correction to Reade 2.19
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

	From zchen@cs.pdx.edu Wed Apr 23 22:11:05 1997
	Received: from sirius.cs.pdx.edu (zchen@sirius.cs.pdx.edu [204.203.64.13])
		by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id WAA08549
		for <apt@cs.pdx.edu>; Wed, 23 Apr 1997 22:11:04 -0700 (PDT)
	Received: (from zchen@localhost)
		by sirius.cs.pdx.edu (8.8.5/8.8.5) id WAA15597;
		Wed, 23 Apr 1997 22:11:02 -0700 (PDT)
	Date: Wed, 23 Apr 1997 22:11:01 -0700 (PDT)
	From: zhong chen <zchen@cs.pdx.edu>
	To: "Andrew P. Tolmach" <apt@cs.pdx.edu>
	Subject: Error in solution to Reade 2.19
	Message-ID: <Pine.SUN.3.91.970423220352.13938A-100000@sirius.cs.pdx.edu>
	MIME-Version: 1.0
	Content-Type: TEXT/PLAIN; charset=US-ASCII
	Status: RO


	Dear Andrew,

	I think there is a small error in the solution to problem 2.19 of Reade:
	the book answer is:

		fun globalforcount n m c (i,s) = forcount' m c (n,s)
		and forcount' m c (n,s) = if n>m then (n,s)
					  else let val (n', s') = (n, s)
					       in forcount' m c (n+1, s) end;

	But I think the recursive reference to forcount' shall pass (n+1, s') as 
	the last argument instead of (n+1, s), e.g.

	        fun globalforcount n m c (i,s) = forcount' m c (n,s)
	        and forcount' m c (n,s) = if n>m then (n,s)
	                                  else let val (n', s') = (n, s)
	                                       in forcount' m c (n+1, s') end;
								       ^	
	***********************************************
	Zhong CHEN

	Dept. of Computer Science
	Portland State University
	P.O.Box 751
	Portland, OR 97207

	Tel: (503)725,7416(H)
	http://www.cs.pdx.edu/~zchen/
	***********************************************


I agree.  Note that you've made a typo in copying the previous line; it should be
      let val (n',s') = c (n,s)

From cs457list-approval@cs.pdx.edu Sun Apr 27 13:59:58 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id NAA00810
	for cs457list-outgoing; Sun, 27 Apr 1997 13:59:53 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id NAA00804;
	Sun, 27 Apr 1997 13:59:49 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id NAA21965;
	Sun, 27 Apr 1997 13:59:48 -0700 (PDT)
Date: Sun, 27 Apr 1997 13:59:48 -0700 (PDT)
Message-Id: <199704272059.NAA21965@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu, rotan@cs.pdx.edu
Subject: Re: Re: 1.12, 1.24 ..
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

Your reading of what m...m should mean is possible, but less
persuiasive than Reade's.  Obviously, it's a limiting case,
and therefore somewhat special, but...

Think about it this way:

m..(m+2) has 3 factors
m..(m+1) has 2 factors

so it makes most sense for
m..m to have just one factor.
	From cs457list-approval@cs.pdx.edu Sun Apr 27 13:38:33 1997
	Received: (from majordomo@localhost)
		by cs.pdx.edu (8.8.5/8.8.5) id NAA28513
		for cs457list-outgoing; Sun, 27 Apr 1997 13:38:24 -0700 (PDT)
	X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
	Received: from sirius.cs.pdx.edu (root@sirius.cs.pdx.edu [204.203.64.13])
		by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id NAA28509
		for <cs457list@cs.pdx.edu>; Sun, 27 Apr 1997 13:38:19 -0700 (PDT)
	Received: from localhost (rotan@localhost [127.0.0.1])
		by sirius.cs.pdx.edu (8.8.5/8.8.5) with ESMTP id NAA13232
		for <cs457list>; Sun, 27 Apr 1997 13:38:17 -0700 (PDT)
	Message-Id: <199704272038.NAA13232@sirius.cs.pdx.edu>
	To: cs457list@cs.pdx.edu
	Subject: Re: Re: 1.12, 1.24 ..
	Date: Sun, 27 Apr 1997 13:38:16 -0700
	From: robert t tan <rotan@cs.pdx.edu>
	Sender: owner-cs457list@cs.pdx.edu
	Precedence: bulk
	Status: R


	Well then Reads definition of prod(n,m) has a bug in it ...
	as it is defined for prod(n,n) with the wrong output.

	The way I see it is that the result of prod(n,m) should be:
		n * n+1 * ... * m ( that is inclusive both n and m ).

		then prod(n,n) is: n * n ( because m = n ).

	- rotan

	>What Reade means by robust is that the function is not defined on 
	>all possible inputs -

	>Consider what happens when m *is greater* than n. The function call will 
	>never terminate since m never becomes = n.

	>I think Reade's definition is fine - notice he says to compute the 
	>product of numbers *between* m and n. There is only 1 number between n 
	>and n i.e. just n.

	> - Sheena

	>> 
	>> Not sure what Reade means by robust, either way I think
	>> the given solutions for 1.12 and 1.24 miss out in case of:
	>> 
	>> - prod(n,n); 
	>> 
	>> Instead of:
	>> 
	>> fun prod (n,m) = if n = m then n * m 
	>> 					else 
	>> 					let fun f (p,v) = 
	>> 					if p = v 
	>> 					then v
	>> 					else p * f (p+1,v) 
	>> 				in 
	>> 					f(m,n) 
	>> 				end;


From cs457list-approval@cs.pdx.edu Mon Apr 28 12:11:22 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id MAA28555
	for cs457list-outgoing; Mon, 28 Apr 1997 12:11:09 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id MAA28510;
	Mon, 28 Apr 1997 12:10:58 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id MAA22774;
	Mon, 28 Apr 1997 12:10:57 -0700 (PDT)
Date: Mon, 28 Apr 1997 12:10:57 -0700 (PDT)
Message-Id: <199704281910.MAA22774@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu, rotan@cs.pdx.edu
Subject: Re: Running mosml and sml ..
Cc: sysgroup@cs.pdx.edu
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

Right; this is no surprise (at least for SML/NJ, and I'm not
too surprised about Moscow ML).  The binaries are for SunOS only.
	From cs457list-approval@cs.pdx.edu Mon Apr 28 10:57:19 1997
	Received: (from majordomo@localhost)
		by cs.pdx.edu (8.8.5/8.8.5) id KAA23259
		for cs457list-outgoing; Mon, 28 Apr 1997 10:56:52 -0700 (PDT)
	X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
	Received: from xavier.cs.pdx.edu (xavier.cs.pdx.edu [204.203.71.40])
		by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id KAA23253
		for <cs457list@cs.pdx.edu>; Mon, 28 Apr 1997 10:56:47 -0700 (PDT)
	Received: from localhost (localhost [127.0.0.1])
		by xavier.cs.pdx.edu (8.8.5/8.8.5) with ESMTP id KAA16431
		for <cs457list>; Mon, 28 Apr 1997 10:56:45 -0700 (PDT)
	Message-Id: <199704281756.KAA16431@xavier.cs.pdx.edu>
	To: cs457list@cs.pdx.edu
	Subject: Re: Running mosml and sml ..
	Date: Mon, 28 Apr 1997 10:56:44 -0700
	From: robert t tan <rotan@cs.pdx.edu>
	Sender: owner-cs457list@cs.pdx.edu
	Precedence: bulk
	Status: R


	As it turned out this is on a Solaris box, runs fine on SunOS
	Send message to CAT if this should be as I experienced.


	>Did anybody have problems running mosml and sml today ?
	>that is mosml: command not found...

	>I ran it before but today cant do, also /pkgs/mosml and /pkgs/sml 
	>arent there ... 

	>Curious if Im the only one ...

	- rotan.


From cs457list-approval@cs.pdx.edu Thu May  1 18:40:57 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id SAA22408
	for cs457list-outgoing; Thu, 1 May 1997 18:40:43 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id SAA22404
	for <cs457list@cs.pdx.edu>; Thu, 1 May 1997 18:40:38 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id SAA28040
	for cs457list; Thu, 1 May 1997 18:40:37 -0700 (PDT)
Date: Thu, 1 May 1997 18:40:37 -0700 (PDT)
Message-Id: <199705020140.SAA28040@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: cs457 examples program
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

The text of today's example database program is now available via the course
web page.  See the top of the file for changes required to make things run
under Moscow ML.

From cs457list-approval@cs.pdx.edu Mon May  5 09:37:31 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id JAA06462
	for cs457list-outgoing; Mon, 5 May 1997 09:37:27 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id JAA06458
	for <cs457list@cs.pdx.edu>; Mon, 5 May 1997 09:37:22 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id JAA01517
	for cs457list; Mon, 5 May 1997 09:37:21 -0700 (PDT)
Date: Mon, 5 May 1997 09:37:21 -0700 (PDT)
Message-Id: <199705051637.JAA01517@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: smlnj library
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

	From lius@cs.pdx.edu Mon May  5 01:42:21 1997
	Received: from [129.95.48.12] (dialip12.cse.ogi.edu [129.95.48.12])
		by cs.pdx.edu (8.8.5/8.8.5) with SMTP id BAA29845
		for <apt@cs.pdx.edu>; Mon, 5 May 1997 01:42:19 -0700 (PDT)
	Message-Id: <199705050842.BAA29845@cs.pdx.edu>
	Subject: Re:question
	Date: Mon, 5 May 97 01:45:48 -0700
	x-mailer: Claris Emailer 2.0, March 15, 1997
	From: lius <lius@cs.pdx.edu>
	To: "Andrew P. Tolmach" <apt@cs.pdx.edu>
	Mime-Version: 1.0
	Content-Type: text/plain; charset="US-ASCII"
	Status: RO

	Dr. Tolmach:
	 
	In the standard ML of New Jersey Library Reference manual, it mentions 
	that there is a library for Array2 which handles the operations of the 
	two-dimensional arrays. I could not open it when I did the same thing as 
	"open Array" for the one dimensional array. Would you please tell me how 
	to open and use this library function? Thanks.

	Shujing Liu

The SML of NJ library is distinct from the "standard" builtin set of
library functions.  You'll find source code for it in 
/pkgs/sml/smlnj-lib-0.2; you can load individual files or
load the entire library via 
use "load-all";

From cs457list-approval@cs.pdx.edu Tue May 13 13:32:56 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id NAA24479
	for cs457list-outgoing; Tue, 13 May 1997 13:32:51 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id NAA24475
	for <cs457list@cs.pdx.edu>; Tue, 13 May 1997 13:32:47 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id NAA11382
	for cs457list; Tue, 13 May 1997 13:32:46 -0700 (PDT)
Date: Tue, 13 May 1997 13:32:46 -0700 (PDT)
Message-Id: <199705132032.NAA11382@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: sml-tk log file problem
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

Several people have reported difficulty running the example given in class,
getting errors like this:

uncaught exception Io "open_out "/tmp/smltk_log": openf failed, Permission 
denied

The problem is that sml-tk writes a log of all its communication with the wish
to a file; this is very handy for debugging, but a problem when more than
one person wants to work on the same Sun system (even if not at the same time!)

Here's a work-around: before you start sml-tk, set the shell environment variable
SMLTK_LOGFILE to a name that's unique to you, e.g., I might use "/tmp/apt_tklog"
or "/u/apt/smltk_log".  How you do this depends on you shell, in C shell you would type

% setenv SMLTK_LOGFILE /u/apg/smltk_log

or whatever.

Then, once you've started sml-tk, you need to typ

initSmlTk();

to force sml-tk to look for the environment variable and set the name of the 
log file accordingly.


From cs457list-approval@cs.pdx.edu Tue May 13 15:00:44 1997
Received: (from majordomo@localhost)
	by cs.pdx.edu (8.8.5/8.8.5) id PAA27166
	for cs457list-outgoing; Tue, 13 May 1997 15:00:39 -0700 (PDT)
X-Authentication-Warning: cs.pdx.edu: majordomo set sender to owner-cs457list@cs.pdx.edu using -f
Received: from pleiades.cs.pdx.edu (apt@pleiades.cs.pdx.edu [204.203.67.104])
	by cs.pdx.edu (8.8.5/8.8.5) with ESMTP id PAA27162
	for <cs457list@cs.pdx.edu>; Tue, 13 May 1997 15:00:34 -0700 (PDT)
From: "Andrew P. Tolmach" <apt@cs.pdx.edu>
Received: (from apt@localhost)
	by pleiades.cs.pdx.edu (8.8.5/8.8.5) id PAA11589
	for cs457list; Tue, 13 May 1997 15:00:33 -0700 (PDT)
Date: Tue, 13 May 1997 15:00:33 -0700 (PDT)
Message-Id: <199705132200.PAA11589@pleiades.cs.pdx.edu>
To: cs457list@cs.pdx.edu
Subject: sml-tk log file (CORRECTION)
Sender: owner-cs457list@cs.pdx.edu
Precedence: bulk
Status: R

Here's a correction to my previous fix.  Still set SMLTK_LOGFILE as directed,
but DON'T attempt to do an initSmlTk() call (which will fail if you try).
THe startup banner should indicate the log file you're using.

