Re: [Chicken-users] newbie: questions about set-finalizer!

2008-12-20 Thread Alejandro Forero Cuervo

 Please try attached patch. I have added it to trunk and the chicken-3
 branch, and did some tests, but testing finalization is always somewhat
 difficult.

I tried the patch (on 3.4.0) and it did not work.

Running in csi the original code in my report,

  (define x (list 1 2 3))
  (begin (set-finalizer! x (lambda (o) (format #t Delete: ~A~% o))) #t)
  (define y (list 4 5 6))
  (begin (set-finalizer! y (let ((p x)) (lambda (o) (format #t Delete: ~A: 
~A~% o p #t)
  (gc #t)
  (set! x #f)
  (gc #t)

, still produces the Delete (1 2 3) message, which it shouldn't.

Alejo.
http://azul.freaks-unidos.net/


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] How to do CGI stuffs?

2008-12-20 Thread Lam Luu

Hello everyone!
This is the first time I use mailing list, and I hope I have everything 
correct! Please pardon any mistake I make.


Anyway, I am trying to do CGI with Chicken Scheme. I have been trying to 
find an egg or something similar to provide basic facilities such as 
parsing POST and GET arguments and stuffs. So far, I have found only two 
seemingly useful eggs, web-unity and cgi-stream. However, web-unity (at 
least in the documentation page on the wiki) seems to require to have a 
separate load program to load the script, with some more complications. 
On the other hand, I dislike the way cgi-stream doing its work. Other 
related eggs (like FastCGI and stuffs) have lost their documentation 
(When I follow the link from Google, they are all broken).


Is there simple way to do this? I may also want to compile the script 
(since my private server is very very weak) while keep another debuging 
version in source form. I can manage what to throw out myself, just need 
a parser for the stuffs sent by client.


Thank you,
Lam X. Luu


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users