]> gitweb.factorcode.org Git - factor.git/commitdiff
More tweaks
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 29 Nov 2008 21:35:39 +0000 (15:35 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Sat, 29 Nov 2008 21:35:39 +0000 (15:35 -0600)
basis/cocoa/messages/messages.factor

index 8ce0ed9df368a4cbb2c94bc8fed8c58bf1d9e91d..4dedd8455aa0a7716316044e3dd1f810653b6a0f 100644 (file)
@@ -67,13 +67,13 @@ MEMO: make-prepare-send ( selector method super? -- quot )
         [ \ <super> , ] when
         swap <selector> , \ selector ,
     ] [ ] make
-    swap second length 2 - '[ @ _ ndip ] ;
+    swap second length 2 - '[ _ _ ndip ] ;
 
 MACRO: (send) ( selector super? -- quot )
     [ dup lookup-method ] dip
     [ make-prepare-send ] 2keep
     super-message-senders message-senders ? get at
-    '[ _ _ slip execute ] ;
+    '[ _ call _ execute ] ;
 
 : send ( receiver args... selector -- return... ) f (send) ; inline
 
@@ -167,7 +167,7 @@ assoc-union alien>objc-types set-global
     ] unless ;
 
 : (parse-objc-type) ( i string -- ctype )
-    [ 1+ ] [ nth ] 2bi {
+    [ [ 1+ ] dip ] [ nth ] 2bi {
         { [ dup "rnNoORV" member? ] [ drop (parse-objc-type) ] }
         { [ dup CHAR: ^ = ] [ 3drop "void*" ] }
         { [ dup CHAR: { = ] [ drop objc-struct-type ] }