-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 11-May-07, at 7:34 AM, Marc Feeley wrote:
Another way to avoid name clashes is to use Gambit's "namespace" declaration.
Forgot to mention that, of course, there is also Snow:
- ------------------------------------------------------- ;;; File: "brad.scm" (package* brad/v1.0.0 (provide: (define (foo x)) (define (vector-copy y))))
(define (foo x) 999) (define (vector-copy y) (list->vector (baz (vector->list y)))) (define (baz z) (reverse z)) ;; baz is a private function - -------------------------------------------------------
To use this module from the file "client.scm" you need to do:
- ------------------------------------------------------- ;;; File: "client.scm" (package* client/v1.0.0 (require: brad/v1))
(pp (vector-copy '#(1 2 3))) ;; calls brad#vector-copy - -------------------------------------------------------