freenode/#lisp - IRC Chatlog
Search
14:23:07
jcowan
In Dijkstra's guarded-command language, if you refer to a variable in an inner block you must redeclare it there
16:15:07
beach
I mean, I don't think there is a requirement like that. If you stick an :AROUND method that supplies initargs, I don't think that is illegal.
16:17:29
phoe
"The generic function reinitialize-instance can be used to change the values of local slots of an instance according to initargs."
16:18:03
phoe
I can kinda infer that if the user supplies no INITARGS then the user may expect nothing to change
16:18:35
specbot
Reinitializing an Instance: http://www.lispworks.com/reference/HyperSpec/Body/07_c.htm
16:24:07
phoe
I ran into an issue where my buggy code cleared out values of slots after calling REINITIALIZE-INSTANCE with no initargs
16:24:34
Bike
but if you want reinitialize-instance to refresh its place in an external store or something that would probably be okay.
19:41:09
pimpom
Can I "expand a list" an pass the contents as input to a function in CL? E.g. I have some function (defun some-fun (arg1 &rest args) ...) and want to pass "args" as several arguments to another function call within this function.
21:47:45
phoe
What is the easiest way to define two packages that cross-reference each other via local nicknames?
22:20:13
Bike
phoe: with sbcl's interface, call add-package-local-nickname for one, i guess. gets annoying if you also want to be able to reeevaluate defpackage forms without complaint, tho
0:14:40
aeth
phoe: Thanks for your input earlier. I fixed the two issues you spotted and I'm going to think about how to approach the typecheck soon.
0:16:22
aeth
I'm not sure if I'll do that right away or if I'll do some graphics stuff first. I haven't done any graphics in a while and I'm thinking of some simple (3D, but effectively behaving the same as isometric) tiles.