[Chicken-users] bug and potential fix for numbers egg

2008-03-28 Thread Alex Shinn
$ csi -R numbers ... #;1 (= 0.1 (/ 1 10)) #f #;2 (= 0.1 (exact-inexact (/ 1 10))) #f #;3 (exact-inexact (/ 1 10)) 0.1 Note that both equalities hold when not using the numbers egg. Exact = comparisons on floating point numbers are rare, but this is just a symptom of a more general issue which

Re: [Chicken-users] egg question

2008-03-28 Thread felix winkelmann
On Thu, Mar 27, 2008 at 1:02 PM, William Ramsay [EMAIL PROTECTED] wrote: Hi, I'm working with the xlib egg, which naturally calls the xlib c procedures.In a case where the egg function has a parameter of (POINTER UNSIGNED-CHAR) what do I use? In other words how do I create a pointer

Re: [Chicken-users] http cookie order

2008-03-28 Thread Graham Fawcett
On Thu, Mar 27, 2008 at 9:07 PM, Tony Sidaway [EMAIL PROTECTED] wrote: Using http.egg to write a bot that has to login to a ubb forum, I discovered that the cookie processing order of that egg resulted in login failure. When I tweaked http:read-request-attributes to reverse the order of

Re: [Chicken-users] Win32 Threading Issue

2008-03-28 Thread Graham Fawcett
On Thu, Mar 27, 2008 at 6:12 PM, Raymond Medeiros [EMAIL PROTECTED] wrote: can someone give me a reasonable explanation as to why this would not work on Win32 but works properly on Linux? what am i missing here? Just curious, in what way doesn't it work? Graham (use tcp-server)

Re: [Chicken-users] bug and potential fix for numbers egg

2008-03-28 Thread John Cowan
Alex Shinn scripsit: As a potential workaround, I've attached a patch which first checks if both the numerator and denominator fit within a long (there's no direct way to check if they fit in a double), and if so just uses the straight C operations (double) numerator / (double)

[Chicken-users] how to access all error info in with-exception-handler?

2008-03-28 Thread Heinrich Taube
I have an error handler that traps errors under callbacks using with- exception-handler. its wroking quite well except that I dont know how to get all the error information to print out. for example if i eval an unbound symbol in the REPL the message includes the name of the offending

[Chicken-users] autoconf build failing on posixunix.c

2008-03-28 Thread john
Hi, I am trying to build a binary using autoconf. Everything had been working fine until my program required the posix unit. The build now bombs out as follows: posixunix.c: In function 'stub355': posixunix.c:615: error: 'C_group' undeclared (first use in this function) posixunix.c:615: error:

Re: [Chicken-users] Win32 Threading Issue

2008-03-28 Thread Hans Bulfone
hi, On Thu, Mar 27, 2008 at 06:12:15PM -0400, Raymond Medeiros wrote: (define send-data (lambda (ip port msg) (define-values (i o) (tcp-connect (-string ip) port)) (write msg o) (let ((result (read-line i))) (close-input-port i) (close-output-port o) result)))

Re: [Chicken-users] autoconf build failing on posixunix.c

2008-03-28 Thread John Cowan
john scripsit: Hi, I am trying to build a binary using autoconf. Everything had been working fine until my program required the posix unit. The build now bombs out as follows: The autoconf build has been dead for a long time. Please download a more recent snapshot and build that. -- John

Re: [Chicken-users] autoconf build failing on posixunix.c

2008-03-28 Thread john
Sorry I was not clear. I am using Chicken 3.0.0 but I am trying to build a binary using the Chicken source together with my app. The reason being I want to distribute the binary on platforms (embedded Linux) without Chicken. It is just the posix unit giving me problems. I only appear to be using a

Re: [Chicken-users] http cookie order

2008-03-28 Thread Drake Wilson
Quoth Graham Fawcett [EMAIL PROTECTED], on 2008-03-28 09:59:16 -0400: RFC2109 allows for multiple Set-Cookies, but it also warns that an intervening gateway could fold multiple such headers into a single header. Since folding is undefined, there's no way the origin server can guarantee the

Re: [Chicken-users] http cookie order

2008-03-28 Thread Graham Fawcett
On Fri, Mar 28, 2008 at 8:31 PM, Drake Wilson [EMAIL PROTECTED] wrote: [RFC excerpts snipped] My interpretation of this is: - Forwarders are not permitted to rearrange multiple Set-Cookie headers. HTTP client and server libraries have the same constraint. - Origin servers

Re: [Chicken-users] bug and potential fix for numbers egg

2008-03-28 Thread Alex Shinn
John == John Cowan [EMAIL PROTECTED] writes: John Alex Shinn scripsit: As a potential workaround, I've attached a patch which first checks if both the numerator and denominator fit within a long (there's no direct way to check if they fit in a double), and if so just

[Chicken-users] Chapter 1 is ready

2008-03-28 Thread Vincent Manis
Some time ago, I posted a draft of a rework of Chapter 1 of the manual, at http://chicken.wiki.br/new-chapter1. A number of you made changes and additions, and today I made my final set of revisions, so I now declare this to be Ready To Go. I'm not sure of the exact mechanism for doing this,