Subject: Re: Gofer


> 
> When I try to enter the addComplex and mkComplex functions as given in the 
> 415.360 homework, I get this far:
> 
> I type: type Complex = (Float, Float) as in the notes and press return.
> 
> Gofer responds: ERROR: Syntax error in expression (unexpected keyword "type")
> 
> Help! What have I done wrong?

Most likely you are entering the type into the worksheet. 
Can't do that. All definitions (types & functions) have to
be entered into a file and then loaded. The worksheet
is for entering expressions to be evaluated only.

/cC

___________________________________________________________________________
Christian Collberg      | Email: c_collberg@cs.auckland.ac.nz
Computer Science Dept   | Fax:   +64-9-373-7453
University of Auckland  | Phone: +64-9-373-7599 x 6137
Private Bag 92019,      | WWW:   http://www.cs.auckland.ac.nz/~collberg/
Auckland, NZ            |
___________________________________________________________________________
"Education is an admirable thing, but it is well to remember from time
to time that nothing that is worth knowing can be taught." - Oscar Wilde
___________________________________________________________________________