freenode/#lisp - IRC Chatlog
Search
0:01:18
Oladon
loke`: hehe, thanks -- I ended up getting _something_ working, so just in the "tweaking" phase now. If whatever you were doing with detach-socket is public, I'd love to take a look
1:19:47
thrashdin
acsessing slots of a class within the class definitionI wanna know if thats possible or not ( I think not)
2:04:10
pjb
thrashdin: note that classes don't contain code. Only generic functions have methods that contain code. So accessing the slot of a class or of an instance in a defclass form doesn't make a lot of sense.
2:20:00
Xach
thrashdin: you usually access slots in methods of the (re)initialization protocol generic functions.
2:39:27
aeth
I tend to treat CL as more of a Java sort of thing (don't access slots directly) than Python (access slots directly). It's not as annoying as Java because the getters/setters are automatic so there's not a lot of boilerplate. This is a case where I'd have a bit of boilerplate, though. You can do fancy things with slots using the meta-object protocol (MOP), but if you do that, then you're going to lose all weekend learning about it just to w
2:41:36
aeth
i.e. I don't know what you want to do, but I'd probably wrap slot access in methods and require the use of those methods, assuming that it can't just be done in the DEFMETHOD INITIALIZE-INSTANCE :AFTER constructor of the class
6:53:22
elderK
Guys, is there a way to have nested loops with LOOP such that the variable def/stepping is after the say, body, (when, etc.)?
7:05:51
beach
In other words, every clause is going to be executed at most once in each iteration of a LOOP.
7:18:51
no-defun-allowed
An oversimplification would be that you start with everything indented just to the right of the LOOP symbol, then every conditional body form is indented in two spaces.
7:37:35
elderK
Perhaps I should learn to read Emacs Lisp so that I can decipher the rules from the indentation contribution
9:31:03
francogrex
Hi all. I am using emacs inferior-lisp to run CL interatively in emacs. however I am creating a game and would like at a certain point to clear the emacs buffer where my lisp is running. I could execute the emacs command (erase-buffer) from emacs e.g. M-x erase-buffer... but can i do it from inside the CL program itself?
9:31:46
francogrex
you know like (run-program bla bla) or something similar? need to execute the elisp command from inside common lisp?
10:02:32
Nilby
francogrex: It's probably best not to do this. If you are making a game with terminal effects like clearing the screen, it's best to use a terminal library like cl-charms and run in the terminal. If it's just for you the developer, it's best to just do it on the emacs side with a elisp. BUT, if you run slime instead of inferior-lisp there is swank:eval-in-emacs, which could do something like that. Note that lisp programmers might be