[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERROR: Bad define placement

From: Neil Jerram
Subject: Re: ERROR: Bad define placement
Date: Wed, 17 Nov 2010 14:24:54 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

barry stevensson <address@hidden> writes:

> ERROR: In procedure memoization:
> ERROR: Bad define placement (define (kxmax zvalue2) (- 1 zvalue2)).

Just move the `(define (kxmax zvalue2) (- 1 zvalue2))' line so that it
comes directly after `(define (kyluw xx zz) (- 1.5 (+ xx zz)))'.  Scheme
doesn't allow that define where you currently have it - see R5RS section

(At least, it's 5.2 in the copy of R5RS that comes with Guile; I haven't
checked other versions.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]