Subject: Re: 360 Assignment 1


> You were right, after careful inspection I found that totalSales m-1 is not
> the same as totalSales(m-1). I'm sure you can tell the difference.

Remember (I think this is on one of the slides. If it isn't,
it should have been...) that function application has *higher*
precedence than any other operator. So, in general, you should
always put parenthesis around function arguments that are
not simple variables or numbers:

? fun (3-5) (6*45+3) 4

/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
___________________________________________________________________________