[gambit-list] including a file only once

Marc Feeley feeley at iro.umontreal.ca
Tue Jul 7 23:38:36 EDT 2009


On 7-Jul-09, at 10:16 PM, lowly coder wrote:

> in C, I can do something like:
>
> #ifndef H_blah
> #define H_blah
> ...
>
> #endif
>
> how can I do something  similar for files (include ... 'ed) in  
> gambit? I have some define-types , and I only want the define-types  
> to load once.
>
> Thanks!

;; File: "foo.scm"

(cond-expand

  ((not foo.scm)
   (define-type person name gender)
   (define-cond-expand-feature foo.scm))

  (else))




More information about the Gambit-list mailing list