The functions new-instance and virtual-operations. | Lecture 8 - slide 11 : 11 Program 4 |
(define (new-instance class . parameters) (let ((instance (apply class parameters))) (virtual-operations instance) instance)) ; Arrange for virtual operations in object (define (virtual-operations object) (send 'set-self! object object))