Bigloo homepage -- Module Example





First, the module mod1:
1: (module mod1
2:    (import mod2)
3:    (export (mod1 x))
4:    (main start))
5: 
6: (define (start argv)
7:   (print "command-line: " argv)
8:   (print (foo (bar (car argv)))))

Then, the module mod2:
1: (module mod2
2:    (import mod1)
3:    (export (mod2 x)))
4: 
5: (define (mod2 x)
6:   (cons 'mod2 x))

This Html page has been produced by Skribe.
Last update Tue Apr 18 14:18:16 2017.