Re: Problem with modules in Guile 2.0

2012-03-07 Thread Mark H Weaver
Gubinelli Massimiliano writes: > Thanks for the prompt reply to both of you. However the proposed > solution do not work in my case. I think it _did_ solve your original problem, but now you have moved on to other unrelated problems. > After implementing the > begin-for-syntax alternative I now

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Gubinelli Massimiliano
Thanks for the prompt reply to both of you. However the proposed solution do not work in my case. After implementing the begin-for-syntax alternative I now get scheme@(guile-user)> (load "main.scm") ;;; compiling /Users/mgubi/t/build-64-guile-2.0/test-modules/main.scm ;;; note: source file /Use

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Andy Wingo
Hi! Mark gave great answers; I just wanted to give one more option: On Tue 06 Mar 2012 22:48, Gubinelli Massimiliano writes: > (load "test-modules.scm") Add a definition first: (cond-expand (guile-2 (define-syntax-rule (begin-for-syntax form ...) (eval-when (load compile eval)

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Mark H Weaver
Gubinelli Massimiliano writes: > I stumbled on a strange behaviour of Guile 2.0, I have the following three > files: main.scm, test-module.scm and sub/mymodule.scm which respectively > contain > > main.scm > > (load "test-modules.scm") > > (inherit-modules (sub mymodule)) > > (display (

Re: prompts: any example ?

2012-03-07 Thread Ian Price
l...@gnu.org (Ludovic Courtès) writes: > Hi Ian, > > Excellent illustration, thank you! > > Ian Price skribis: > >> https://gist.github.com/1548531 - monadic reflection > > Could you expound on this one? I can feel the greatness, but I don’t > fully grasp it. :-) Yes, and it doesn't help that