UNICODE support and fixed a bug where top level imports did noit work

This commit is contained in:
FelixBrendel
2020-04-05 23:06:46 +02:00
parent 12e743f57b
commit ffc576eae3
20 changed files with 123 additions and 41 deletions
+8 -4
View File
@@ -1,17 +1,21 @@
(define-module math
:imports ("oo.slime")
:exports (pi abs sqrt make-vector3)
:exports (pi tau abs sqrt make-vector3)
(define pi
:doc "Tha famous circle constant."
"The famous circle constant."
3.14159265)
(define tau
"The second famous circle constant."
(* 2 pi))
(define (abs x)
:doc "Accepts one argument and returns the absoulte value of it"
"Accepts one argument and returns the absoulte value of it"
(if (> x 0) x (- x)))
(define (sqrt x)
:doc "Accepts one argument and returns the square root of it"
"Accepts one argument and returns the square root of it"
(** x 0.5))
(define-class (vector3 x y z)