Re: interrogation about introspecting function bindings

2013-01-07 Thread Andy Wingo
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 --

Re: interrogation about introspecting function bindings

2012-01-11 Thread rixed
-[ 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

Re: interrogation about introspecting function bindings

2012-01-10 Thread Andy Wingo
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

interrogation about introspecting function bindings

2011-12-21 Thread rixed
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