Fix mzscheme simple example
This commit is contained in:
parent
80e9034425
commit
f6da155fda
2 changed files with 4 additions and 3 deletions
|
|
@ -13,5 +13,6 @@ build:
|
|||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' \
|
||||
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' mzscheme
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' mzscheme_clean
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
(display (get-time))
|
||||
|
||||
(printf "My-variable = ~a~n" (my-variable))
|
||||
(printf "My-variable = ~a~n" (My-variable))
|
||||
|
||||
(let loop ((i 0))
|
||||
(when (< i 14) (begin (display i)
|
||||
|
|
@ -17,8 +17,8 @@
|
|||
(when (< i 250)
|
||||
(begin
|
||||
(let loopi ((j 1))
|
||||
(when (< j 250) (begin (my-variable (+ (my-variable) (mod i j)))
|
||||
(when (< j 250) (begin (My-variable (+ (My-variable) (mod i j)))
|
||||
(loopi (+ j 1)))))
|
||||
(loop (+ i 1)))))
|
||||
|
||||
(printf "My-variable = ~a~n" (my-variable))
|
||||
(printf "My-variable = ~a~n" (My-variable))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue