On Wed 11 Jan 2012 17:13, ri...@happyleptic.org writes:
> -[ Tue, Jan 10, 2012 at 10:15:54PM +0100, Andy Wingo ]
>> Why not use program-arguments-alist, or program-lambda-list?
>
> Because they were not in the procedure index, hence the attached patch.
Finally committed :) Cheers!
Andy
--
-[ Tue, Jan 10, 2012 at 10:15:54PM +0100, Andy Wingo ]
> Why not use program-arguments-alist, or program-lambda-list?
Because they were not in the procedure index, hence the attached patch.
>From 6637ce41e5e8cbfefe4c14c47ac79c7a3f5a6cfe Mon Sep 17 00:00:00 2001
From: Cedric Cellier
Date: Wed
Hi Cedric,
On Wed 21 Dec 2011 13:26, ri...@happyleptic.org writes:
> I'm trying to get a list of parameter names from a function, using
> this:
>
> (use-modules (system vm program))
> (define (val->string v)
> (if (string? v) v (object->string v)))
> (define (fun-params fun)
> (let ((bindings
I'm trying to get a list of parameter names from a function, using this:
(use-modules (system vm program))
(define (val->string v)
(if (string? v) v (object->string v)))
(define (fun-params fun)
(let ((bindings (program-bindings fun)))
(map (lambda (binding) (val->string (binding:name bind