Weird module behaviour

2014-09-25 Thread Panicz Maciej Godek
Hi all, I'm trying to use Aleix Conchillo's guile-redis module for my project, and it revealed a surprising use-case. Namely, guile-redis consists of several modules that are put together in one meta-module, which looks more or less like this: (define-module (redis) #:use-module (redis main) #

Re: Weird module behaviour

2014-09-25 Thread Taylan Ulrich Bayirli/Kammer
Panicz Maciej Godek writes: > Furthermore, when I try to use the #:renamer feature, like > > (use-modules ((redis) #:renamer (symbol-prefix-proc 'redis:))) > > [...] Just a tip: you can do e.g. (use-modules ((foo) #:prefix foo-)). It seems many people don't know of it. Taylan

Re: Weird module behaviour

2014-09-25 Thread Panicz Maciej Godek
2014-09-25 16:25 GMT+02:00 Taylan Ulrich Bayirli/Kammer : >> [...] > > Just a tip: you can do e.g. (use-modules ((foo) #:prefix foo-)). It > seems many people don't know of it. No wonder, since there's not a single mention in the documentation, which is perceived as the document that makes things

Re: Weird module behaviour

2014-09-25 Thread Taylan Ulrich Bayirli/Kammer
Panicz Maciej Godek writes: > No wonder, since there's not a single mention in the documentation, > which is perceived as the document that makes things official. Oh snap. :-) The stable-2.0 branch has it documented. I also checked and it's even in 2.0.5 which Debian stable has so the feature

Re: Weird module behaviour

2014-09-25 Thread Barry Schwartz
Panicz Maciej Godek skribis: > I'm trying to use Aleix Conchillo's guile-redis module for my project, > and it revealed a surprising use-case. > Namely, guile-redis consists of several modules that are put together > in one meta-module, which looks more or less like this: > > (define-module (redi

Re: smob mark functions in 2.0

2014-09-25 Thread Mark H Weaver
Hi Andy, Reviving a 3-year-old thread... Andy Wingo wrote in November 2011: > If you do implement a SMOB marking function, and you touch Scheme > objects in that marking function, you need to be very careful. > > Specifically, there is a warning in gc/gc_mark.h: > > /* WARNING: Such a mar