[clean-list] My very first program crashes!

sebastien FURIC sebastien.furic@tni.fr
Mon, 28 May 2001 11:37:37 +0200


Frantisek Fuka a écrit :

> I Downloaded latest CLEAN for Windows 98 and I managed to compile and
> run many of the included examples, including thecomplex ones (hanoi,
> scrabble). Then I tried my first program:
>
> --------------------------
> module test1
>
> import StdEnv
>
> pow x n
>         |n==1           = x
>         |otherwise      = pow x n-1
>
> Start = pow 3 2
> --------------------------
>
> It compiles without errors, launches the DOS console and immediately
> crashes (STACK FAULT). I even tried restarting my computer, erasing
> everything in "Clean System Files", compiling again, but it still
> crashes...

pow x n-1 is parsed as (pow x n)-1...

--

Sebastien