1
;*---------------------------------------------------------------------*/
2
;* serrano/prgm/project/bigloo/recette/letrec.scm */
4
;* Author : Manuel Serrano */
5
;* Creation : Tue Nov 17 19:18:37 1992 */
6
;* Last change : Fri Jul 6 09:38:02 2001 (serrano) */
9
;*---------------------------------------------------------------------*/
11
(load "./test/unittest-bigloo.scm")
13
;*---------------------------------------------------------------------*/
15
;*---------------------------------------------------------------------*/
17
(letrec ((x (number->string y))
19
(string->symbol (string-append string x)))))
22
;*---------------------------------------------------------------------*/
24
;* ------------------------------------------------------------- */
25
;* un test qui plantait a la compilation */
26
;*---------------------------------------------------------------------*/
28
(letrec ((foo (lambda (x) (bar 0) (set! foo 8) 'done))
29
(bar (lambda (x) (if (= x 0)
34
;*---------------------------------------------------------------------*/
36
;*---------------------------------------------------------------------*/
38
(test "letrec" ((test1 1) "TOTO") 'TOTO1)
39
(test "letrec" (foo 10) 'done)
40
(test "delay" (procedure? (letrec ((foo (delay foo))) (force foo))) #t))