Ok_Specific_7749B to Lisp@communick.newsEnglish · 1 year agoHow to write a "hello world" ltk application using ccl lisp ?message-squaremessage-square4fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1message-squareHow to write a "hello world" ltk application using ccl lisp ?Ok_Specific_7749B to Lisp@communick.newsEnglish · 1 year agomessage-square4fedilinkfile-text
minus-squareOk_Specific_7749OPBlinkfedilinkEnglisharrow-up1·1 year agoProgram below does not work with ccl. load "~/quicklisp/setup.lisp") (ql:quickload "ltk") (in-package :ltk-user) (declaim (optimize (speed 3) (safety 3))) (defun main() (with-ltk () (let ((b (make-instance 'button :master nil :text "Press Me" :command (lambda () (format t "Hello World!~&"))))) (pack b)))) (main)
Program below does not work with ccl.
load "~/quicklisp/setup.lisp") (ql:quickload "ltk") (in-package :ltk-user) (declaim (optimize (speed 3) (safety 3))) (defun main() (with-ltk () (let ((b (make-instance 'button :master nil :text "Press Me" :command (lambda () (format t "Hello World!~&"))))) (pack b)))) (main)