fix define-module ordering
authorAndy Wingo <wingo@pobox.com>
Sat, 21 May 2011 16:29:03 +0000 (18:29 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 21 May 2011 16:29:03 +0000 (18:29 +0200)
commitad4bd7c2c0c931a91160772e5ebf40af0f471874
tree4687fa00367422285e258494afe9c71bd6ae69ef
parent0dd8493cb33e69d202f93810a39279c988bd2d95
fix define-module ordering

* module/ice-9/boot-9.scm (define-module): Fix to load the #:use-module
  clauses in the order in which they appear in the define-module form.
  Thanks to Jan Nieuwenhuizen for the report.

* test-suite/standalone/test-import-order: Add new test that
  define-module and use-modules resolve the interface in the right
  order.

* test-suite/standalone/Makefile.am:
* test-suite/standalone/test-import-order-a.scm:
* test-suite/standalone/test-import-order-b.scm:
* test-suite/standalone/test-import-order-c.scm:
* test-suite/standalone/test-import-order-d.scm: Aux files.
module/ice-9/boot-9.scm
test-suite/standalone/Makefile.am
test-suite/standalone/test-import-order [new file with mode: 0755]
test-suite/standalone/test-import-order-a.scm [new file with mode: 0644]
test-suite/standalone/test-import-order-b.scm [new file with mode: 0644]
test-suite/standalone/test-import-order-c.scm [new file with mode: 0644]
test-suite/standalone/test-import-order-d.scm [new file with mode: 0644]