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 Mc

Re: [Chicken-users] Imlib2 question

2007-09-25 Thread Zbigniew
On 9/24/07, Peter Bex <[EMAIL PROTECTED]> wrote: > On Mon, Sep 24, 2007 at 04:29:25PM -0400, William Ramsay wrote: > > Just calling it produces r. > Yes, this is (afaik) a deviation from the standard. ... I want > an error if I forgot to receive all values, I don't want the first > value This beh

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

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 w

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 PROTECTE

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 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 insid

Re: [Chicken-users] Imlib2 question

2007-09-24 Thread Graham Fawcett
On 9/24/07, Peter Bex <[EMAIL PROTECTED]> wrote: > On Mon, Sep 24, 2007 at 04:29:25PM -0400, William Ramsay wrote: > > Why not just return a list and make it simple? I forgot to add this form, which "returns a list": (receive my-list (imlib:pixel/rgba img x y) (do-something-with my-list)) It

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

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 > produc

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 > o

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 a

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 sc