guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with test-suites and modules


From: Martin Grabmueller
Subject: Re: Problems with test-suites and modules
Date: Tue, 08 May 2001 00:25:09 +0200

> From: thi <address@hidden>
> Date: Mon, 7 May 2001 14:55:31 -0700
> 
>    From: Martin Grabmueller <address@hidden>
>    Date: Mon, 07 May 2001 23:31:06 +0200
> 
>    Is there a possibility to access the bindings in my modules instead?
>    Placing the use-modules statement into the test fails, because
>    use-modules is only allowed at top-level now.
> 
> you would have to manually do something like:
> 
> (define (module-peek module-name sym)
>   (variable-ref (module-variable (resolve-module module-name) sym)))
> 
> (define proc (module-peek '(other module) 'proc))

Thanks, works like a charm (but is a nasty kludge, though).

And I found a bug in (srfi srfi-13), too!

Regards,
  'martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]