Re: [Chicken-users] passing a string to foreign-lambda*

2007-07-09 Thread felix winkelmann
On 7/10/07, Martin DeMello <[EMAIL PROTECTED]> wrote: Thanks! I was trying to use string-concatenate, but couldn't manage to make it available at macro expansion time (is this possible?) (require-for-syntax 'sfi-13) cheers, felix ___ Chicken-use

Re: [Chicken-users] Automated builds

2007-07-09 Thread felix winkelmann
On 09 Jul 2007 13:22:35 -0300, Mario Domenech Goulart <[EMAIL PROTECTED]> Maybe it should be used only when the egg is platform-specific, since we have only a few eggs in this situation. If "(platform ...)" is ommited, it means that the egg is platform-independent. Otherwise, as far as I under

Re: [Chicken-users] List -> C strings

2007-07-09 Thread Zbigniew
$ pwd ~/build/chicken $ grep string-length library.scm (define (string-length s) (##core#inline "C_i_string_length" s)) $ grep C_i_string_length runtime.c C_regparm C_word C_fcall C_i_string_length(C_word s) Hope that helps. Zb On 7/9/07, Robin Lee Powell <[EMAIL PROTECTED]> wrote: Except: Prob

[Chicken-users] List -> C strings

2007-07-09 Thread Robin Lee Powell
I need to take a Scheme list and pass it to a foreign function, so I stole the following code from chasen: #> char **make_strings(C_word lst) { int len, i; C_word tmp; char **hlist; len = C_unfix(C_i_length(lst)); hlist = (char**) malloc(sizeof(char*) * (len + 1)); for(i = 0, t

Re: [Chicken-users] passing a string to foreign-lambda*

2007-07-09 Thread Graham Fawcett
On 7/9/07, Martin DeMello <[EMAIL PROTECTED]> wrote: Thanks! I was trying to use string-concatenate, but couldn't manage to make it available at macro expansion time (is this possible?) Try the "-X" argument to csc: csc -X byte-string-srfi-13 ... your-source-file.scm I see there is a "utf8-sr

Re: [Chicken-users] parameterize-from-alist

2007-07-09 Thread Ivan Shmakov
"AS" == Alaric Snell-Pym <[EMAIL PROTECTED]> writes: [...] AS> He suggested I ask on The List, so here it is. Is there a way to AS> write parameterize-from-alist without eval hackery, or shall I just AS> use the wings dynamic environment? 'Course. However, I'd recommend for it to be im

Re: Bug/problems with fmt (was Re: [Chicken-users] Columnar text display code?)

2007-07-09 Thread Robin Lee Powell
On Mon, Jul 09, 2007 at 01:49:12PM +0900, Alex Shinn wrote: > On 7/7/07, Alex Shinn <[EMAIL PROTECTED]> wrote: > > > >> Unfortunately, fmt hangs on the obvious solution: > >> > >> (fmt #t > >> (join > >>(lambda (x) (trim 5 x)) > >>(string-split "foo foo\nbar bar\n" "\n") > >>

Re: [Chicken-users] passing a string to foreign-lambda*

2007-07-09 Thread Martin DeMello
On 7/9/07, felix winkelmann <[EMAIL PROTECTED]> wrote: On 7/8/07, Martin DeMello <[EMAIL PROTECTED]> wrote: > > No, I want a C function whose body is a string generated by combining > a template and some arguments that fill in slots in the template. > (define-macro (foo name x) `(define ,name

[Chicken-users] parameterize-from-alist

2007-07-09 Thread Alaric Snell-Pym
Ok, as I mentioned previously, in Wings I'm defining a dynamic wings environment to pass resources into request handlers. Naturally, it's nice to use proper SRFI parameters where one can; the environment is for things where they won't work elegantly, such as structured names (data source "foo" h

[Chicken-users] [Scheme Steering Committee announcements] Important: Schedule for Registration and Voting on R6RS

2007-07-09 Thread Mitchell Wand
Voter registration started at 23:00 GMT on May 16. The Editors announced a draft for ratification at 20:00 GMT on July 1. So here is the rest of the schedule: 1. Voter registration ends: 20:00 GMT on July 15. 2. Voting starts: July 29. 3. Voting ends: August 12. 4. Official results anno

Re: [Chicken-users] The Programmer Hierarchy

2007-07-09 Thread Graham Fawcett
In a similar vein (similar, since Lisp is at the top of the food chain): http://secretgeek.net/lisp_truth.asp Substitute "Chicken" for "Lisp", of course. ;-) Graham ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mail

Re: [Chicken-users] Automated builds

2007-07-09 Thread Mario Domenech Goulart
On Mon, 9 Jul 2007 08:54:24 +0200 "felix winkelmann" <[EMAIL PROTECTED]> wrote: > On 7/3/07, Arto Bendiken <[EMAIL PROTECTED]> wrote: > > > > Perhaps, then, we could use a form like (platforms ...) to indicate > > that an egg will only build on some specific platforms. One would > > probably like

Re: [Chicken-users] Iron Chicken

2007-07-09 Thread Graham Fawcett
On 7/8/07, Shawn W. <[EMAIL PROTECTED]> wrote: I don't care so much about using sxpath and pre-post-order and such. SXML's just lists. I /know/ how to manipulate lists. :) Don't count sxpath out too early, though. :-) For its intended purpose, it is very easy to use, quite efficient, and your c

Re: [Chicken-users] preferred gui library

2007-07-09 Thread minh thu
Brandon wrote : "Lightweight" can be a valid design choice. I'm just pointing out the strategic consequences of fixating on that. I mean, let's face it, people intoned all those ideas and desires some months ago and nothing has come of it. Hehe, only because I'm damn slow ... but I'm still

Re: [Chicken-users] passing a string to foreign-lambda*

2007-07-09 Thread felix winkelmann
On 7/8/07, Martin DeMello <[EMAIL PROTECTED]> wrote: No, I want a C function whose body is a string generated by combining a template and some arguments that fill in slots in the template. (define-macro (foo name x) `(define ,name (foreign-lambda* void ((c-string arg)) ,(format #