Search
Monday, 3rd of June 2019, 9:25:40 UTC
11:09:48
python476
just wanted to greet lispers
11:36:58
Lycurgus
does CCL have a channel here?
11:38:24
jackdaniel
there are also: #abcl, #clasp, #ecl, #sbcl and #sicl
11:38:32
jackdaniel
for other implementaitons
12:13:35
Xach
aeth: i use asdf's default behavior on sbcl. i build each system in isolation on a new process.
17:09:30
asarch
One stupid question: as far I know, (let) is only for variables and (flet) for functions). Is there anything for both variables and functions?
17:10:06
Bike
no. what would that do? bind a name both as a variable and as a function?
17:10:23
Bike
or would you have to distinguish variables from functions somehow
17:12:46
asarch
Using GTK+ for Common Lisp with cl-cffi-gtk: (within-main-loop (let ((window (make-instance 'gtk:window)) (gl-area (make-instance 'gtk:gtk-gl-area))) (flet ((render () (gl:clear(0 0 0 0)))) (gtk:g-signal-connect 'gl-area "render" render))...
17:13:42
Bike
if you're just passing it to other things i'd just have a lambda
17:15:22
asarch
However, the render callback won't be outside the scope of (flet)
17:15:53
asarch
(let ((window (make-instance 'gtk:window))) (flet ((render () ...)))
17:16:19
asarch
Oder: (flet ((render () ...) (let ((window (make-instance 'gtk:window)) ...)))
17:16:46
asarch
(let ... (flet ...)) or (flet ... (let ...))
17:17:15
asarch
Can you create a closure with (flet)?
17:17:44
Bike
but i meant just have (let ((window ...) (render (lambda () (gl:clear 0 0 0 0)))) (gtk:g-signal-connect 'gl-area "render" render) ...)
17:19:52
asarch
Thank you very much guys :-)
Monday, 3rd of June 2019, 21:25:40 UTC