Re: idea: create module

2006-04-25 Thread Neil Jerram
"Jon Wilson" <[EMAIL PROTECTED]> writes: > Hi all, > I just had a random idea, and thought I'd run it by y'all. What if you > could compose modules from the REPL, and then write them to a file? Or alternatively you could write some Emacs Scheme mode support to allow you to evaluate definitions

RE: Newbie trying to use/install on Fedora 5

2006-04-25 Thread Norton, Jack
Olwe, If you have a reasonably powerful machine, try Gentoo linux. People get scared of the idea of a source based distro, but I feel there is no better way to learn than stumbling through the Gentoo Handbook (which is primo). There is linux et al, and then there is Red Hat et al. -Ori

Re: accessing a printf-like function from scheme

2006-04-25 Thread William Xu
Dan McMahill <[EMAIL PROTECTED]> writes: > I'm trying to provide scheme access to a C function which has the same > interface a printf(). What I'd like to do in scheme is something like But, doesn't SLIB already have this? (info "(slib) Standard Formatted Output") -- William ___

Re: accessing a printf-like function from scheme

2006-04-25 Thread Tomas Zerolo
On Tue, Apr 25, 2006 at 08:44:55AM -0400, Dan McMahill wrote: > > Hello, > > I'm trying to provide scheme access to a C function which has the same > interface a printf(). [...] > SCM g_funcs_log(SCM s_num_list) > { > SCM s_element; > int length; > int i; > > /* Check that the input is

accessing a printf-like function from scheme

2006-04-25 Thread Dan McMahill
Hello, I'm trying to provide scheme access to a C function which has the same interface a printf(). What I'd like to do in scheme is something like (gschem-log "This is a %s message with %d args, pi is %g\n" "log" 3 3.14 ) so I've gotten as far as a function which takes a variabl

Re: idea: create module

2006-04-25 Thread Thien-Thi Nguyen
From: "Jon Wilson" <[EMAIL PROTECTED]> Date: Mon, 24 Apr 2006 18:31:55 -0700 (define mod (make-module (my modulename))) (define f1 (lambda () (display "f1"))) (define value 7) (add-export mod f1 value) (write-module-file "my_modulename.scm") you can use `define-module' in a r