Skip to content

Commit

Permalink
Switched some more ? to ' in variable uses.
Browse files Browse the repository at this point in the history
  • Loading branch information
sellout committed Sep 10, 2011
1 parent 134ee41 commit c1ee510
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions library/simple-components.kiln
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
;; similar to :USEing the component in a Common Lisp DEFPACKAGE.
(par (trigger* {include-component ?filename}
(new component (par (trigger* {component-out ?out down}
?out)
'out)
(trigger* {component-local ?local down}
?local)
'local)
[component (lisp (load #.?filename))])))
;; `load-component` gives you better isolation, but requires that you
;; "qualify" the message with the name of the kell you pass in. Using
Expand Down
12 changes: 7 additions & 5 deletions tests/test-examples.kiln
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{test-result (par {should {execute-received-message}}
{test (new a
(par {a {echo "Hello World"}}
(trigger {a ?x} ?x)))}
(trigger {a ?x} 'x)))}
{expected-result {echo "Hello World"}})}

;;; location.kiln
Expand All @@ -33,15 +33,17 @@
{test (new a
(par {a "Hello"}
{a "World"}
(trigger {a ?x} {echo ?x})))}
(trigger {a ?x} {echo 'x})))}
{expected-result {echo "Hello"}})}

;;; synchronous.kiln
{test-result (par {should {concatenate-message}}
{test (new a
(par (new r
(par (load "library/simple-components")
{include-component "library/strings"}
(new r
(par {a (list "hello " "world" {r})}
(trigger {r ?x} {echo ?x})))
(trigger {r ?x} {echo 'x})))
(trigger {a (list ?x ?y {?r})}
{r (lisp (cl:concatenate 'cl:string #.?x #.?y))})))}
{string-concat (list 'x 'y {r})})))}
{expected-result {echo "hello world"}})}

0 comments on commit c1ee510

Please sign in to comment.