kevingal has quit [Remote host closed the connection]
cosmeve has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
bilegeek has joined #commonlisp
waleee has quit [Ping timeout: 255 seconds]
rogersm has quit [Read error: Connection reset by peer]
rogersm has joined #commonlisp
rogersm has quit [Read error: Connection reset by peer]
rogersm_ has joined #commonlisp
cosmeve has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
B0bby has quit [Quit: Leaving]
pranavats has left #commonlisp [Error from remote client]
Pirx has joined #commonlisp
abrantesasf has joined #commonlisp
seok66 has joined #commonlisp
azimut_ has joined #commonlisp
azimut has quit [Ping timeout: 252 seconds]
igemnace has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
hexology has quit [Quit: hex on you ...]
hexology has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
abrantesasf has quit [Remote host closed the connection]
beach` has joined #commonlisp
beach has quit [Killed (NickServ (GHOST command used by beach`!~user@2a01:cb19:a62:6300:4a1a:d668:c7e9:6ee5))]
beach` is now known as beach
Gleefre has quit [Ping timeout: 245 seconds]
igemnace has quit [Remote host closed the connection]
ldb has joined #commonlisp
bilegeek has quit [Quit: Leaving]
zxcvz has joined #commonlisp
amb007 has quit [Ping timeout: 240 seconds]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 258 seconds]
amb007 has joined #commonlisp
shka has joined #commonlisp
rtypo has quit [Ping timeout: 255 seconds]
ldb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
rgherdt has joined #commonlisp
aliosablack has joined #commonlisp
pve has joined #commonlisp
habamax has joined #commonlisp
msavoritias has joined #commonlisp
anticomputer_ has joined #commonlisp
anticomputer has quit [Ping timeout: 252 seconds]
gxt_ has quit [Ping timeout: 252 seconds]
gxt_ has joined #commonlisp
pve has quit [Ping timeout: 258 seconds]
pve has joined #commonlisp
blop_ has quit [Ping timeout: 252 seconds]
edgar-rft has quit [Quit: don't waste your life by reading this]
rgherdt has quit [Ping timeout: 240 seconds]
azimut_ has quit [Ping timeout: 252 seconds]
dino_tutter has joined #commonlisp
aliosablack has quit [Ping timeout: 252 seconds]
dinomug has quit [Remote host closed the connection]
remexre_ has joined #commonlisp
remexre has quit [Ping timeout: 260 seconds]
remexre_ is now known as remexre
mgl has joined #commonlisp
anticrisis has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
makomo has joined #commonlisp
cdegroot has quit [Ping timeout: 258 seconds]
random-nick has joined #commonlisp
karlosz has joined #commonlisp
jon_atack has quit [Ping timeout: 264 seconds]
tyson2 has joined #commonlisp
morganw has joined #commonlisp
jonatack has joined #commonlisp
aliosablack has joined #commonlisp
edgar-rft has joined #commonlisp
mgl has quit [Ping timeout: 255 seconds]
puke has quit [Remote host closed the connection]
puke has joined #commonlisp
mgl has joined #commonlisp
cage has joined #commonlisp
mrcom has quit [Quit: Leaving]
igemnace has joined #commonlisp
_cymew_ has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
karlosz has quit [Quit: karlosz]
yitzi has joined #commonlisp
mrcom has joined #commonlisp
anticomputer_ has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
habamax has quit [Remote host closed the connection]
zxcvz has quit [Quit: zxcvz]
dcb has joined #commonlisp
mrcom has quit [Quit: Leaving]
notzmv has quit [Ping timeout: 240 seconds]
igemnace has quit [Read error: Connection reset by peer]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
igemnace has joined #commonlisp
philipp__ has joined #commonlisp
<philipp__>
Hi, I need some very basic help because my brain stopped working. I am in SLIME and try to define a variable like this: (defvar *tmp*) – but I always get "The variable *tmp* is unbound". What was the correct way to define a variable again?
agm has joined #commonlisp
<philipp__>
Now it works for some reason, nevermind.
<beach>
Did you get that error when you evaluated the DEFVAR form?
pve has quit [Read error: Connection reset by peer]
<philipp__>
Yes.
<beach>
If so, you must have been in a package where DEFVAR is not CL:DEFVAR, so it thought it was a function, and evaluated its argument.
<philipp__>
I see.
<philipp__>
That makes sense, thanks.
<beach>
Sure.
<yitzi>
Also defvar without an initial-value leaves the variable unbound
<beach>
Yes, that's why I asked when the error happened.
<yitzi>
Gotcha
<philipp__>
I must have somehow borked the cl package. After restart the lisp process, it works fine now.
<yitzi>
That seems unlikely, especially if you are using SBCL which locks the CL package.
pve has joined #commonlisp
<agm>
if foo has a setf expansion, then (setf (foo a) b) first evaluates the value forms and binds the result to the temp variables, then evaluates b and assigns the result to the store variable, in that order right?
<beach>
Yes, the order of evaluation is as expected.
<beach>
... from left to right.
killerstorm has joined #commonlisp
<beach>
So in (push b (foo a)), it will be the other way around.
pequod has joined #commonlisp
<pkal>
agm: you can always check out what the expression expands to, and then you know it will be evaluated with the regular left-most-bottom-most strategy.
<beach>
agm: Not really. That page just talks about the place itself, not about the entire form.
<beach>
agm: That's why I gave you two possibilities with the same setf expansion but with two different forms and two different orders.
<bike>
the evaluation order is actually in 5.1.1.1 rather than 5.1.1.2.
<bike>
" For the macros that manipulate places (push, pushnew, remf, incf, decf, shiftf, rotatef, psetf, setf, pop, and those defined by define-modify-macro) the subforms of the macro call are evaluated exactly once in left-to-right order, with the subforms of the places evaluated in the order specified in (1)." the value you're pushing is left of the place so it's evaluated first.
<agm>
bike: rule 2?
<agm>
ok
<bike>
for push, yes. for setf alone it's point one.
<bike>
you're allowed to define a setf expansion that doesn't evaluate things left to right, like how you're allowed to punch through glass windows.
cage has quit [Quit: rcirc on GNU Emacs 29.1]
<bike>
but that just applies to the place subforms. b is always going to be evaluated after place subforms in (setf whatever b).
<agm>
haha ok, thanks everybody
vjalmr has joined #commonlisp
karlosz has joined #commonlisp
rtypo has joined #commonlisp
mrcom has joined #commonlisp
Algernon69 has joined #commonlisp
Algernon69 has quit [Ping timeout: 240 seconds]
molson has joined #commonlisp
morganw has quit [Remote host closed the connection]
McParen has joined #commonlisp
karlosz has quit [Quit: karlosz]
notzmv has joined #commonlisp
karlosz has joined #commonlisp
ldb has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
msavoritias has quit [Remote host closed the connection]
jjnkn has joined #commonlisp
pequod has quit [Ping timeout: 240 seconds]
karlosz has quit [Quit: karlosz]
amb007 has quit [Ping timeout: 258 seconds]
amb007 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
amb007 has quit [Ping timeout: 255 seconds]
pequod has joined #commonlisp
dom2 has joined #commonlisp
killerstorm has quit [Quit: Client closed]
amb007 has joined #commonlisp
luna-is-here has quit [Ping timeout: 264 seconds]
pequod has quit [Ping timeout: 272 seconds]
karlosz has joined #commonlisp
puke has quit [Quit: puke]
pequod has joined #commonlisp
puke has joined #commonlisp
azimut has joined #commonlisp
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
luna-is-here has joined #commonlisp
<mfiano>
I wish CFFI:WITH-POINTER-TO-VECTOR-DATA allowed binding the data vector of a non rank-1 specialized array, or a rank-1 array displaced-to it, but nope, needs to be rank-1 and specialized.
akoana has joined #commonlisp
* mfiano
wonders if there is a solution to one or the other without getting even more into the weeds
dom2 has quit [Ping timeout: 272 seconds]
pequod has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
igemnace has quit [Remote host closed the connection]
McParen has left #commonlisp [#commonlisp]
amb007 has quit [Ping timeout: 272 seconds]
ldb has left #commonlisp [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
jjnkn has quit [Remote host closed the connection]
amb007 has joined #commonlisp
azimut has quit [Ping timeout: 252 seconds]
tyson2 has quit [Remote host closed the connection]
azimut has joined #commonlisp
waleee has joined #commonlisp
dustinm` has quit [Quit: Leaving]
azimut has quit [Ping timeout: 252 seconds]
azimut has joined #commonlisp
ronald_ has joined #commonlisp
dustinm` has joined #commonlisp
waleee has quit [Ping timeout: 272 seconds]
attila_lendvai has joined #commonlisp
waleee has joined #commonlisp
pequod has joined #commonlisp
pequod has quit [Ping timeout: 255 seconds]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
vjalmr has quit [Quit: Terminated!]
_cymew_ has quit [Ping timeout: 245 seconds]
tibfulv has quit [Remote host closed the connection]
yitzi has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
Pirx has quit [Ping timeout: 258 seconds]
alexsotodev has quit [Ping timeout: 258 seconds]
luna-is-here has quit [Ping timeout: 260 seconds]
shka has quit [Ping timeout: 272 seconds]
attila_lendvai has quit [Ping timeout: 248 seconds]
seok66 has quit [Quit: Client closed]
Inline has quit [Quit: Leaving]
pequod has joined #commonlisp
tyson2 has joined #commonlisp
pequod has quit [Ping timeout: 240 seconds]
bilegeek has joined #commonlisp
Inline has joined #commonlisp
Algernon69 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
rgherdt_ has joined #commonlisp
agm has quit [Ping timeout: 264 seconds]
rgherdt has quit [Ping timeout: 240 seconds]
pve has quit [Quit: leaving]
mgl has quit [Ping timeout: 255 seconds]
anticrisis has joined #commonlisp
karlosz has quit [Quit: karlosz]
Algernon69 has quit [Ping timeout: 240 seconds]
rgherdt_ has quit [Ping timeout: 240 seconds]
triffid has quit [Remote host closed the connection]