Why is module-public-interface not implemented as a slot in the module structure? Right now, you get very odd behavior if you define a module A which uses module B, but doesn't define %module-public-interface.

The %module-public-interface of module A is then aliased to the %public-interface of B. Reexporting the symbols of A will modify B, since the %module-public-interface of B is then modified.

I propose to add the following to the definition of make-module,

  (set-module-public-interface! module #f)

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to