bug#52218: Unable to define more than one R7RS library per file

2021-12-03 Thread Linus Björnstam
It is the same bug. The r7rs define-library expands to a r6rs library, which expands to a guile module form that lacks support for multiple libraries. The solution would probably include a non-trivial (but probably not very big) change to guile's module system. First you would have to save and

bug#52218: Unable to define more than one R7RS library per file

2021-12-01 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
On 2021-12-01 11:00 +0100, Linus Björnstam wrote: > This is in line with the limitations of guile's R6RS implementation. I > think this is a long standing, low priority bug. It has to do with the > expansion of library (or define-library in this case) not properly > resetting the current module. >

bug#52218: Unable to define more than one R7RS library per file

2021-12-01 Thread Linus Björnstam
Hi Sam! I am not a maintainer , nor a very proficient guile hacker, but I do have some input. This is in line with the limitations of guile's R6RS implementation. I think this is a long standing, low priority bug. It has to do with the expansion of library (or define-library in this case) not

bug#52218: Unable to define more than one R7RS library per file

2021-12-01 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
Guile is unable to handle more than one define-library per file. For example, this is "mylibs.sld", which contains two define-library: (define-library (example mylib) (import (scheme base)) (export f) (begin (define (f x) (+ x 1 (define-library (example main) (import