Hide internal fields in color% and point%.
This commit is contained in:
parent
ba8684cb63
commit
1207ca77c4
|
@ -12,7 +12,7 @@
|
|||
color->immutable-color)
|
||||
|
||||
(define-local-member-name
|
||||
r g b)
|
||||
r g b a)
|
||||
|
||||
(defclass color% object%
|
||||
(field [r 0]
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
(provide point% point-x point-y
|
||||
list-of-pair-of-real?)
|
||||
|
||||
(define-local-member-name x y)
|
||||
|
||||
(define point%
|
||||
(class object%
|
||||
(init-field [x 0.0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user