Updated documentation to reflect the new syntax of the with statement
authorHenrik Hjelte <henrik@evahjelte.com>
Wed, 15 Nov 2006 16:13:03 +0000 (16:13 +0000)
committerHenrik Hjelte <henrik@evahjelte.com>
Wed, 15 Nov 2006 16:13:03 +0000 (16:13 +0000)
docs/reference.lisp
t/reference-tests.lisp

index 0b5ba4b..1ae0996 100644 (file)
@@ -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' }) {
index f509cc7..71a0039 100644 (file)
@@ -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' }) {