rabbibotton / clog

CLOG - The Common Lisp Omnificent GUI
Other
1.54k stars 103 forks source link

Tutorial 7 - Value 800 is not of type STRING #21

Closed faeredia closed 3 years ago

faeredia commented 3 years ago

Tutorial 7 fails to run (on SBCL 2.1.1) returning The value 800 is not of type STRING when binding STRING

width and height are returning integers changing:

(flet ((set-bounds ()
           (setf bounds-x (parse-integer (width (window body)) :junk-allowed t))
           (setf bounds-y (parse-integer (height (window body)) :junk-allowed t))))

to:

(flet ((set-bounds ()
           (setf bounds-x (width (window body)))
           (setf bounds-y (height (window body)))))

runs as expected

rabbibotton commented 3 years ago

My bad for not running through tests after a change. Corrected