Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (root msg)
- (let ([slots (make-hash)])
- (hash-set! slots 'responds-to (λ() (hash-keys slots)))
- (hash-set! slots 'make-slot (λ (key value) (hash-set! slots key value)))
- (hash-set! slots 'clone
- (λ(msg) (let ([slots (hash-copy slots)]) (hash-ref slots msg))))
- (hash-ref slots msg)))
Add Comment
Please, Sign In to add comment