Re: [Chicken-users] Imlib2 question

2007-09-25 Thread William Ramsay
Once I spelled receive correctly it works like a champ. Thanks.I cannot get over what a great language Scheme is and what a great system Chicken is. Why would anyone use anything else? Thanks again.What I was missing in trying to use receive was that the results must be handled

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread Peter Bex
On Tue, Sep 25, 2007 at 09:04:19AM -0400, William Ramsay wrote: Once I spelled receive correctly it works like a champ. Thanks.I cannot get over what a great language Scheme is and what a great system Chicken is. Why would anyone use anything else? Would you mind convincing my boss?

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread John Cowan
William Ramsay scripsit: Thanks again.What I was missing in trying to use receive was that the results must be handled inside the body of the procedure. If you actually want a list, it's easy to get one with (receive foo (whatever x y z) foo) -- John Cowan[EMAIL PROTECTED]

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread Alex Queiroz
Hallo, On 9/25/07, Peter Bex [EMAIL PROTECTED] wrote: On Tue, Sep 25, 2007 at 09:04:19AM -0400, William Ramsay wrote: Once I spelled receive correctly it works like a champ. Thanks.I cannot get over what a great language Scheme is and what a great system Chicken is. Why would

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread Graham Fawcett
On 9/25/07, Alex Queiroz [EMAIL PROTECTED] wrote: On 9/25/07, Peter Bex [EMAIL PROTECTED] wrote: On Tue, Sep 25, 2007 at 09:04:19AM -0400, William Ramsay wrote: Why would anyone use anything else? Would you mind convincing my boss? :) Get into the queue! :-) For what it's worth, I

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread John Cowan
Graham Fawcett scripsit: Some of the things I would have used in my elevator pitch for Chicken (keeping in mind that Web apps are my thing): These should be posted to the Wiki. -- John Cowan [EMAIL PROTECTED]http://ccil.org/~cowan Original line from The Warrior's Apprentice by Lois

[Chicken-users] Imlib2 question

2007-09-24 Thread William Ramsay
Hi, Can anyone explain to me how to get the four values from the imlib2 egg procedure (imlib:pixel/rgba img x y)? It seems to only return the first value, but it's supposed to return four values. This may be more of a scheme question than an imlib2 question, but either way I can't seem to

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread Alex Queiroz
Hallo, On 9/24/07, William Ramsay [EMAIL PROTECTED] wrote: Hi, Can anyone explain to me how to get the four values from the imlib2 egg procedure (imlib:pixel/rgba img x y)? It seems to only return the first value, but it's supposed to return four values. This may be more of a scheme

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread William Ramsay
That's the problem, I don't know what to use.I've tried call-with-values and receive, but both give me errors, mostly because I have no idea what I'm doing.Receive expects (name1 name2 ...) valexp body, but this produces an error since name1 is not a command. Why not just return a list

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread Graham Fawcett
On 9/24/07, William Ramsay [EMAIL PROTECTED] wrote: That's the problem, I don't know what to use.I've tried call-with-values and receive, but both give me errors, mostly because I have no idea what I'm doing. The call to (imlib:pixel img x y) should return the r, g, b, a values of the

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread Peter Bex
On Mon, Sep 24, 2007 at 04:29:25PM -0400, William Ramsay wrote: That's the problem, I don't know what to use.I've tried call-with-values and receive, but both give me errors, mostly because I have no idea what I'm doing.Receive expects (name1 name2 ...) valexp body, but this produces

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread Peter Bex
On Mon, Sep 24, 2007 at 10:42:22PM +0200, Peter Bex wrote: Yes, this is (afaik) a deviation from the standard. I don't like it one bit, precisely for this reason: it's damned confusing. I want an error if I forgot to receive all values, I don't want the first value, dammit! Sorry for the