]> git.jsancho.org Git - gacela.git/blobdiff - src/examples/making-systems.scm
Making systems with macros instead functions. Now, we have define-system and make...
[gacela.git] / src / examples / making-systems.scm
index b3f381decc2fe998b48df3f767909159ba4e3506..37097191fd5387e888b2752fc989d19f69c6eed7 100644 (file)
 (define (making-systems)
   (let ((entities '())
        (components '()))
-    (receive (e c) (((make-system '() (lambda (e) (list (new-entity (make-a 1 2)) (new-entity (make-a 10 20))))) entities components))
+    (receive (e c) (((make-system () (lambda (e) (list (new-entity (make-a 1 2)) (new-entity (make-a 10 20))))) entities components))
             (set! entities e)
             (set! components c))
     (format #t "Two new entities with a:~%~a~%~a~%~%" entities components)
 
-    (((make-system '(a) (lambda (e) (display e) (newline) '())) entities components))))
+    (((make-system (a) (lambda (e) (display e) (newline) '())) entities components))))
 
 (export making-systems)