..
original commit: 968ad03a861729fc05db380baecf486693ec5b14
This commit is contained in:
parent
ccd670afee
commit
2ef98371e4
|
@ -1,13 +1,7 @@
|
||||||
(module surrogate mzscheme
|
(module surrogate mzscheme
|
||||||
(require (lib "class.ss"))
|
(require (lib "class.ss"))
|
||||||
|
|
||||||
(provide host<%>
|
(provide surrogate)
|
||||||
surrogate)
|
|
||||||
|
|
||||||
(define host<%>
|
|
||||||
(interface ()
|
|
||||||
set-surrogate
|
|
||||||
get-surrogate))
|
|
||||||
|
|
||||||
(define-syntax (surrogate stx)
|
(define-syntax (surrogate stx)
|
||||||
|
|
||||||
|
@ -117,7 +111,12 @@
|
||||||
(interface ()
|
(interface ()
|
||||||
on-disable-surrogate
|
on-disable-surrogate
|
||||||
on-enable-surrogate
|
on-enable-surrogate
|
||||||
ids ...)])
|
ids ...)]
|
||||||
|
[host<%>
|
||||||
|
(interface ()
|
||||||
|
set-surrogate
|
||||||
|
get-surrogate
|
||||||
|
ids ...)])
|
||||||
(values
|
(values
|
||||||
(lambda (super%)
|
(lambda (super%)
|
||||||
(class* super% (host<%>)
|
(class* super% (host<%>)
|
||||||
|
@ -145,7 +144,8 @@
|
||||||
overriding-methods ...
|
overriding-methods ...
|
||||||
|
|
||||||
(super-new)))
|
(super-new)))
|
||||||
|
host<%>
|
||||||
|
|
||||||
(class* object% (surrogate<%>)
|
(class* object% (surrogate<%>)
|
||||||
(define/public (on-enable-surrogate x) (void))
|
(define/public (on-enable-surrogate x) (void))
|
||||||
(define/public (on-disable-surrogate x) (void))
|
(define/public (on-disable-surrogate x) (void))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user