misc improvements after writing a beginner program with contracts
svn: r12371 original commit: 788443072b63960a8df2319e4fdb6aa855c482ed
This commit is contained in:
parent
8365ec9fe5
commit
2c3393f53e
|
@ -54,6 +54,10 @@
|
|||
|
||||
;; the pinhole's coordinates
|
||||
(init-field px py)
|
||||
(when (inexact? px)
|
||||
(set! px (floor (inexact->exact px))))
|
||||
(when (inexact? py)
|
||||
(set! py (floor (inexact->exact py))))
|
||||
(define/public (get-pinhole) (values px py))
|
||||
|
||||
(init-field (width #f)
|
||||
|
|
Loading…
Reference in New Issue
Block a user