Failing to build g-wrap for guile 1.9.10

2010-05-31 Thread Romel Sandoval
Hello I'm trying to build g-wrap downloaded with git for guile 1.9.10. I have my guile on $HOME/usr. I also have the following environment variables: export LDFLAGS="-L$HOME/usr/lib" export CPPFLAGS="-I$HOME/usr/include -I$HOME/usr/include/guile/2.0" export PKG_CONFIG_PATH="$HOME/usr/lib/pkgconf

Re: Question about how to get the value of function

2010-05-31 Thread No Itisnt
>>(define y '(1 2 3 4)) >>(define dt 1) >>(define foo >   (lambda (t) (do ((i 0 (+ i 1))) ((> i 3)) (if (and (>= t 0) (and (>= t > (* i dt)) (< t (* (+ i 1) dt (list-ref y i) #f DO does not return its body. It can be a little confusing. http://www.schemers.org/Documents/Standards/R5RS

Re: Question about how to get the value of function

2010-05-31 Thread Linas Vepstas
2010/5/31 Hsiu-Hao Tsao : > Hello plt-scheme users , > > I am new to scheme and sorry to ask a newbie question. > > I want to let function return the value , for example , in Drscheme : > >>(define add2 (lambda (i) (+ i i))) >>(add2 2) > 4 > > I type (add2 2) in command line and it will return a va

Question about how to get the value of function

2010-05-31 Thread Hsiu-Hao Tsao
Hello guile users , I am new to scheme and sorry to ask a newbie question. I want to let function return the value , for example , in Drscheme : >(define add2 (lambda (i) (+ i i))) >(add2 2) 4 I type (add2 2) in command line and it will return a value 4. But when I type my function foo in the

Question about how to get the value of function

2010-05-31 Thread Hsiu-Hao Tsao
Hello plt-scheme users , I am new to scheme and sorry to ask a newbie question. I want to let function return the value , for example , in Drscheme : >(define add2 (lambda (i) (+ i i))) >(add2 2) 4 I type (add2 2) in command line and it will return a value 4. But when I type my function foo in