This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Module system


Russ McManus wrote:
> This is how I code using the current module system:
> 
> (define (a-public-function x)
>   (+ 1 x))
> 
> Then at the bottom of the source file, I say:
> 
> (define-public a-public-function a-public-function)
> 
> This may not be elegant, but it seems to do what you want.

I thought this was not possible. It's weird that a private name can be
exported as the same symbol and indeed I thought it was not possible
--lacking a manual is a serious problem.

	Juanjo

> --
> The Feynman problem solving Algorithm:
>   1. Write down the problem.   2. Think real hard.  3. Write down the answer
>              -- Murray Gell-mann in the NY Times