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


Juan Jose Garcia Ripoll <jjgarcia@ind-cr.uclm.es> writes:

> Just my 2c thought: please do not differentiate between publicly defined
> variables and private ones. I mean that it should be two different
> actions the "assignment of a variable", such as in
> 
> (define a 1)
> (define b "hola")
> 
> and the publication of it for the outside world, maybe with something
> like
> 
> (public a b)

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.

-russ

--
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