-
Notifications
You must be signed in to change notification settings - Fork 2
/
interfaces.scm
30 lines (26 loc) · 1.02 KB
/
interfaces.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;;; -*- Mode: Scheme; scheme48-package: (config) -*-
(define-interface soosy-macros/interface
(export (define-class :syntax)
(define-method :syntax)
(with-instance-variables :syntax)
(==> :syntax)
(usual==> :syntax)
))
(define-interface soosy-objects/interface
(export make-class make-object class object
object-class object-variables object-methods object-method
object-variable set-object-variable!
send send-usual
class? object? object-of-class? base-class? subclass?
class-name class-superclass class-subclasses class-methods
class-method-define class-variables))
(define-interface soosy-helpers/interface
(compound-interface
soosy-objects/interface
(export *all-classes*
add-class!
false? name->class
with-instance-variables*)))
(define-interface soosy/interface
(compound-interface soosy-macros/interface
soosy-objects/interface))