guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [comp.lang.lisp] Re: accessor name clashes when using packages


From: Thien-Thi Nguyen
Subject: Re: [comp.lang.lisp] Re: accessor name clashes when using packages
Date: Sat, 25 Aug 2001 13:08:10 -0700

   From: Rob Browning <address@hidden>
   Date: Sat, 25 Aug 2001 14:03:07 -0500

   Can you refer to a symbol inside another package, and can we say
   something like "import all but ..."?

the first is possible using `module-ref' and `resolve-module'.  see
header boilerplate in scripts/PROGRAM for example.

the second is also possible: set up a proxy module that can examine its
bindings before and after a "manual" `use-modules' call, and re-exports
only what you want.  IMHO, negative specification ("use all but...") is
a misguided approach because it sounds explicit but is actually not,
which leads to unmatched expectations -> disappointment -> heartache ->
mistrust -> fear -> anger -> suffering.  (better to suffer explicitly,
or something like that... ;-)

thi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]