[clean-list] My very first program crashes!

Marc/Pop Poppleton marc.poppleton@wanadoo.fr
Mon, 28 May 2001 11:28:31 +0200


FF> I Downloaded latest CLEAN for Windows 98 and I managed to compile and
FF> run many of the included examples, including thecomplex ones (hanoi,
FF> scrabble). Then I tried my first program:

FF> --------------------------
FF> module test1

FF> import StdEnv

FF> pow x n
FF>         |n==1           = x
FF>         |otherwise      = pow x n-1

FF> Start = pow 3 2
FF> --------------------------

Hum...what is supposed to happen when you give the value 0 to n when
you start? Maybe try solving that first! ;)

Regards,
Marc Poppleton