Re: Modules with Circular Dependencies

2011-03-24 Thread Andy Wingo
On Fri 18 Mar 2011 22:16, Noah Lavine writes: >> The problem is that modules are resolved at compile-time, in addition to >> run-time, so there just can’t be circular dependencies. > > It's true that a module couldn't depend, at compile-time, on a module > that was only available at run-time. How

Re: Modules with Circular Dependencies

2011-03-18 Thread Noah Lavine
Hello, > The problem is that modules are resolved at compile-time, in addition to > run-time, so there just can’t be circular dependencies. It's true that a module couldn't depend, at compile-time, on a module that was only available at run-time. However, I think we could handle circular dependen

Re: Modules with Circular Dependencies

2011-03-18 Thread Ludovic Courtès
Hello! The problem is that modules are resolved at compile-time, in addition to run-time, so there just can’t be circular dependencies. Besides, I think it’s generally a problem from an engineering viewpoint when cycles are introduced. So my feeling is that Guile should be able to detect cycles

Modules with Circular Dependencies

2011-03-18 Thread Noah Lavine
Hello all, I recently ran up against an issue about modules with circular dependencies while working on PEG stuff. I reduced it to the following test case. Here is file "test-a.scm": (define-module (test-a) #:use-module (test-b)) (define-syntax hello (syntax-rules () ((hel