From: Henrik Hjelte Date: Wed, 15 Nov 2006 16:13:03 +0000 (+0000) Subject: Updated documentation to reflect the new syntax of the with statement X-Git-Tag: parenscript-20070720~42 X-Git-Url: https://git.hcoop.net/clinton/parenscript.git/commitdiff_plain/5d9cdcad4b609fcf1f174f988f2fb833249ae385 Updated documentation to reflect the new syntax of the with statement --- diff --git a/docs/reference.lisp b/docs/reference.lisp index 0b5ba4b..1ae0996 100644 --- a/docs/reference.lisp +++ b/docs/reference.lisp @@ -818,7 +818,7 @@ a-variable => aVariable ;;;t \index{scoping} ;;;t \index{closure} -; (WITH (object) body) +; (WITH object body) ; ; object ::= a ParenScript expression evaluating to an object ; body ::= a list of ParenScript statements @@ -827,7 +827,7 @@ a-variable => aVariable ;;; adds the object `object' as an intermediary scope objects when ;;; executing the body. -(with ((create :foo "foo" :i "i")) +(with (create :foo "foo" :i "i") (alert (+ "i is now intermediary scoped: " i))) => with ({ foo : 'foo', i : 'i' }) { diff --git a/t/reference-tests.lisp b/t/reference-tests.lisp index f509cc7..71a0039 100644 --- a/t/reference-tests.lisp +++ b/t/reference-tests.lisp @@ -430,7 +430,7 @@ x = a + b + c;") }") (test-ps-js the-with-statement-1 - (with ((create :foo "foo" :i "i")) + (with (create :foo "foo" :i "i") (alert (+ "i is now intermediary scoped: " i))) "with ({ foo : 'foo', i : 'i' }) {