[ contacts>> swap void* <c-direct-array> ] bi nth cpContact memory>struct n>>
]
[
- drop swappedColl>> 0 = [ ] [ cpvneg ] if
+ drop swappedColl>> 0 = [ cpvneg ] unless
] 2bi ; inline
TYPED: cpArbiterGetPoint ( arb: cpArbiter i -- p: cpVect )
[
readline.ffi:readline [
|free utf8 alien>string [
- [ ] [ readline.ffi:add_history ] if-empty
+ [ readline.ffi:add_history ] unless-empty
] keep
] [ f ] if*
] with-destructors ;
} case ;
: slot-name ( name/array -- name )
- dup string? [ ] [ first ] if ;
+ dup string? [ first ] unless ;
+
: slot-names ( array -- names )
[ slot-name ] map ;
send-site-email ;
: send-reports ( seq -- )
- [ ] [ [ send-report ] each ] if-empty ;
+ [ [ send-report ] each ] unless-empty ;
PRIVATE>
ERROR: no-class name ;
: lookup-class ( class -- class )
- classes get ?at [ ] [ no-class ] if ;
+ classes get ?at [ no-class ] unless ;
: define-class ( class superclass ivars -- class-word )
[ create-class ] [ lookup-class ] [ ] tri*
: define-foreign ( class name -- )
classes get set-at ;
-tuple "Object" define-foreign
\ No newline at end of file
+tuple "Object" define-foreign