scm_shell in gui

2006-07-03 Thread Jonathan Wilson
Hi, Is it possible to call scm_shell with different stdin and stdout? The primary purpose of this that I can see would be to run a guile shell inside a text area of a gui or something like that. Regards, Jon ___ Guile-user mailing list Guile-user@g

Re: values->list elements

2006-06-13 Thread Jonathan Wilson
Ah... great minds DO think alike! Regards, Jon Neil Jerram wrote: Jon Wilson <[EMAIL PROTECTED]> writes: The intermediate step (after the macro expansion I guess) would look like (+ 1 2) ==> 3 It seems like this would make multiple values much much more useful. I've often thought that too.

Re: values->list elements

2006-06-13 Thread Jonathan Wilson
Hi szgyg, szgyg wrote: No, this is impossible without redefining +. A macro produces 1 sexp, not more. This is exactly what I am getting at. values does return more than 1 sexp, but the mechanisms for using that are clumsy and painful. It seems that if values returns multiple s-expressions

Re: Newbie question: bind a variable on the fly

2006-06-13 Thread Jonathan Wilson
Hi Neil, Neil Jerram wrote: Jon Wilson <[EMAIL PROTECTED]> writes: (define-macro (dyn-set! var val) `(begin (if (not (defined? (quote ,var))) (primitive-eval `(define ,(quote ,var) #f))) (set! ,var ,val))) (defined? 'undefined-symbol)

Re: c interface to modules

2005-06-17 Thread Jonathan Wilson
Whoops! I always forget and just hit reply, then the message doesn't go to the list. Ondrej Zajicek wrote: Hello I would like to export two sets (low-level and high-level interface) of C functions to Scheme. I think it is a good idea to have each interface in different module. What is a good w

Re: Guile-WWW 2.12 available

2005-06-09 Thread Jonathan Wilson
Does it have SSL/HTTPS support? :) My pressing need/desire for such support has temporarily vanished for the summer, so I have not been working very much (rather, at all) on the libwww SWIG approach. Alas. Perhaps I will pick that back up again. Does anyone here use libwww? (in C programming?)