Macros are now properly getting baked in Modules bug still persists
This commit is contained in:
+18
-19
@@ -1,22 +1,21 @@
|
||||
;; (define-module math
|
||||
;; :exports
|
||||
;; (pi tau pow sqrt)
|
||||
|
||||
;; (define pi 3.1415)
|
||||
;; (define tau (* 2 pi))
|
||||
;; (define (pow a b) (** a b))
|
||||
;; (define (sqrt a) (** a 0.5)))
|
||||
|
||||
;; (assert (= math::pi 3.1415))
|
||||
;; (assert (= math::tau (* 2 math::tau)))
|
||||
|
||||
|
||||
(tdefine-module 'math
|
||||
(define-module math
|
||||
:exports
|
||||
'(pi tau pow sqrt)
|
||||
(pi tau pow sqrt)
|
||||
|
||||
'(define pi 3.1415)
|
||||
'(define tau (* 2 pi))
|
||||
'(define (pow a b) (** a b))
|
||||
'(define (sqrt a) (** a 0.5)))
|
||||
(define pi 3.1415)
|
||||
(define tau (* 2 pi))
|
||||
(define (pow a b) (** a b))
|
||||
(define (sqrt a) (** a 0.5)))
|
||||
|
||||
(assert (= math::pi 3.1415))
|
||||
(assert (= math::tau (* 2 math::tau)))
|
||||
|
||||
|
||||
;; (tdefine-module 'math
|
||||
;; :exports
|
||||
;; '(pi tau pow sqrt)
|
||||
|
||||
;; '(define pi 3.1415)
|
||||
;; '(define tau (* 2 pi))
|
||||
;; '(define (pow a b) (** a b))
|
||||
;; '(define (sqrt a) (** a 0.5)))
|
||||
|
||||
Reference in New Issue
Block a user