freenode/#lisp - IRC Chatlog
Search
1:51:12
no-defun-allowed
My guess (again) is that you may have thought that form would be tail-recursive, which is the case if there's nothing more to do, and so immediately jumping into that function, without setting up returning to the current function, maintains the illusion that you have called them like normal.
1:52:00
no-defun-allowed
If you write the base case first, then a reader who is familiar with induction would be able to decide if your code will behave and not infinitely recurse.
1:54:37
White_Flame
if you just want to jump back, GOTO style, (tagbody try-again (format t "Please ...") ... (unless (member ..) (go try-again)) ...)
1:59:11
surabax
cl-glfw3's fragment-shader-example instantly closes on launch without any errors on SBCL and Windows 10
2:07:04
surabax
It seems to be dying on the gl:uniformf call that updates the time variable in the render function
2:24:32
surabax
Looks like the examples don't clean up the OpenGL state after themselves so they break if you try to run more than one without reloading everything
3:02:12
matzy_
no-defun-allowed: yeah you're guess sounds right, i basically thought as soon as the UNLESS condition was met and it called itself (the recursive function), it stopped executing and just exectured taht function instead rinse and repeat
3:03:16
no-defun-allowed
Right, UNLESS and WHEN will not affect the evaluation of anything outside of their bodies by themselves.
3:04:19
matzy_
so my thought was the only function call who should hit that second format statement would be a call that did not hit the unless and did not stop to execute another function
3:04:55
matzy_
but it makes sense - if i was calling some other random function, i sure as well wouldn't want my original/main function to stop executing after the call and return
3:06:16
matzy_
it's just weird to think about what value x has at various stages in that process, to me at least
3:07:08
matzy_
if i enter 4, 3, and 2 (lets always use this as an example - it rejects 4 and 3 and is only happy when i enter 2)
3:57:29
no-defun-allowed
It does not, short of the recursively defined structure that looks like <L> ::= () | (<L> . <L>)
8:57:51
loke[m]
Recently my SLIME is only giving me 20 frames in the debugger. Is there a setting somewhere that limits this? It's consistently 20 frames, so it seems as it's just stopping.