! Tuples
: (emit-tuple) ( tuple -- pointer )
- [ tuple>array rest-slice ]
+ [ tuple-slots ]
[ class transfer-word tuple-layout ] bi prefix [ ' ] map
tuple type-number dup [ emit-seq ] emit-object ;
] cache-object ;
M: tombstone '
- delegate
- "((tombstone))" "((empty))" ? "hashtables.private" lookup
- def>> first [ emit-tuple ] cache-object ;
+ state>> "((tombstone))" "((empty))" ?
+ "hashtables.private" lookup def>> first
+ [ emit-tuple ] cache-object ;
! Arrays
M: array '
: do-primitive ( number -- ) "Improper primitive call" throw ;
PRIVATE>
-
-! Deprecated
-GENERIC: delegate ( obj -- delegate )
-
-M: tuple delegate 2 slot ;
-
-M: object delegate drop f ;
"GENERIC: generic"
"M: class generic quot ;"
}
- "It checks if the top of the stack is an instance of " { $snippet "class" } ", and if so, executes the quotation. Delegation is respected."
+ "It checks if the top of the stack is an instance of " { $snippet "class" } ", and if so, executes the quotation."
}
{ $notes "This word is used internally to wrap unsafe low-level code in a type-checking stub." } ;