unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* %module-public-interface
@ 2010-03-30 20:45 Andy Wingo
  2010-03-30 20:56 ` %module-public-interface Ludovic Courtès
  2010-03-31 20:42 ` Hierarchical name space Ludovic Courtès
  0 siblings, 2 replies; 27+ messages in thread
From: Andy Wingo @ 2010-03-30 20:45 UTC (permalink / raw)
  To: guile-devel

Hello,

As you might well know, in every module that actually has a public
interface (most all of them), there is an extra symbol bound in that
module: %module-public-interface. It references, um, the public
interface.

Also in every module that has submodules, like (language tree-il) and
(language tree-il compile-glil), the "supermodule" has a binding for the
submodule. Do a (module-ref (resolve-module '(ice-9)) 'threads)
sometime.

It is, as my southern-US family would say, "turrible". But somehow it
normally doesn't affect us.

I'm pretty sure that the submodule thing can be changed without any
problem. But it seems that the %module-public-interface is used
explicitly, at least by texmacs and lilypond.

Any ideas on what the right thing to do is? Just leave it? Add fields to
modules for the public interface and submodules, but keep the
%module-public-interface binding? Throw up our hands and dance around?

Let me know,

Andy
-- 
http://wingolog.org/




^ permalink raw reply	[flat|nested] 27+ messages in thread
* %module-public-interface
@ 2020-01-15  6:50 dsmich
  2020-01-15 19:59 ` %module-public-interface Andy Wingo
  0 siblings, 1 reply; 27+ messages in thread
From: dsmich @ 2020-01-15  6:50 UTC (permalink / raw)
  To: 'guile-devel@gnu.org'

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

(Sorry for the non-plain-test formatting, haven't the new mailer
interface from Spectrum yet. Ugh.)

	I'm porting some old code to 3.0 and I've come across this:

	(define-module (bobotpp bot))

	(set-module-uses! %module-public-interface

	 (list (module-ref (resolve-module '(guile-user) #f)

	 'the-bot-module)))

	What is the 3.0 equivalent? I'm not sure what the above is trying to
do.

	Thanks,

	 -Dale

	What s

[-- Attachment #2: Type: text/html, Size: 1135 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread
* %module-public-interface
@ 2007-08-10 13:57 Andy Wingo
  2007-08-10 14:54 ` %module-public-interface Ludovic Courtès
  0 siblings, 1 reply; 27+ messages in thread
From: Andy Wingo @ 2007-08-10 13:57 UTC (permalink / raw)
  To: guile-devel

Hello all,

Currently the public interface of a module is bound to a symbol in the
module, %module-public-interface. This is a bit silly, as modules are
record types anyway; why not just add another field in the module struct
for this kind of metadata? Suggest doing so in 1.9.

Regards,

Andy.
-- 
http://wingolog.org/


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


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2020-01-15 19:59 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-30 20:45 %module-public-interface Andy Wingo
2010-03-30 20:56 ` %module-public-interface Ludovic Courtès
2010-03-30 21:07   ` %module-public-interface Andy Wingo
2010-03-30 21:52     ` %module-public-interface Ludovic Courtès
2010-03-30 22:20       ` %module-public-interface Andy Wingo
2010-04-02  0:11       ` %module-public-interface Ian Hulin
2010-04-02  9:37         ` %module-public-interface Ludovic Courtès
2010-04-02 11:58           ` %module-public-interface Ian Hulin
2010-04-02 18:50             ` %module-public-interface Patrick McCarty
2010-04-03  0:52               ` %module-public-interface Graham Percival
2010-04-06 14:00             ` %module-public-interface Han-Wen Nienhuys
2010-04-06 14:32               ` %module-public-interface Ludovic Courtès
2010-04-27 20:34         ` %module-public-interface Andy Wingo
2010-05-15 20:32           ` %module-public-interface Ian Hulin
2010-05-21  9:48             ` %module-public-interface Andy Wingo
2010-03-31 20:42 ` Hierarchical name space Ludovic Courtès
2010-03-31 22:31   ` Andy Wingo
2010-04-07 22:42     ` Julian Graham
2010-04-07 23:01       ` Ludovic Courtès
2010-04-08  7:29         ` Andy Wingo
2010-04-08  8:39           ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2020-01-15  6:50 %module-public-interface dsmich
2020-01-15 19:59 ` %module-public-interface Andy Wingo
2007-08-10 13:57 %module-public-interface Andy Wingo
2007-08-10 14:54 ` %module-public-interface Ludovic Courtès
2010-03-30 21:02   ` %module-public-interface Andy Wingo
2010-03-30 21:40     ` %module-public-interface Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).