-
Notifications
You must be signed in to change notification settings - Fork 4
everywhere
Turtle Kitty edited this page Jan 29, 2016
·
1 revision
This allows the programmer to define variables and procedures to be available during compile time and run time.
(def foo 1)
(proc bar (x) (+ x 10))
(bar foo) -> Ok!
(macro baz ()
(... foo or bar ...)) -> ERROR
(macro-eval
(def foo 2)
(proc bar (x) (+ x 20)))
(macro baz ()
(... foo or bar ...)) -> Ok!
(bar foo) -> ERROR
(everywhere
(def foo 3)
(proc bar (x) (+ x 30)))
(macro baz ()
(... foo or bar ...)) -> Ok!
(bar foo) -> Also Ok!