Search found 5 matches

by jakykong
Sun Dec 09, 2018 2:33 pm
Forum: Common Lisp
Topic: Find path to package resources?
Replies: 2
Views: 17652

Re: Find path to package resources?

pjstirling wrote:I use ASDF:SYSTEM-RELATIVE-PATHNAME (usually with a per-package wrapper) to directly create PATHNAMES when I need to do this.
I hadn't spotted that function earlier. That's much cleaner. Thank you! :)
by jakykong
Sun Dec 09, 2018 1:14 pm
Forum: Common Lisp
Topic: Find path to package resources?
Replies: 2
Views: 17652

Find path to package resources?

Good morning! As in my last thread, I'm working on a small game using cl-sdl2. At this point I've got a playable demo and I'm working out a few kinks. The biggest is loading images. I have a small routine that loads sprites from *.png files, and memoizes the resultant textures. (defvar *sprites* nil...
by jakykong
Thu Nov 22, 2018 10:35 am
Forum: Common Lisp
Topic: CLOS objects with many slots
Replies: 8
Views: 26975

Re: CLOS objects with many slots

This should be okay, except you might want to pass the environment to find-class (from the &environment parameter of the macro). Somehow I had entirely missed that &environment exists - learned something new about macro expansion here. Just pulled up the hyperspec to get details, that seems...
by jakykong
Mon Nov 19, 2018 11:55 pm
Forum: Common Lisp
Topic: CLOS objects with many slots
Replies: 8
Views: 26975

CLOS objects with many slots

I'm working on a small game, and I found a situation where with-slots seems cumbersome. Specifically, I'm writing a method that calculates whether a game object's bounding rectangle will collide before it actually does collide. Actually checking a collision isn't hard conceptually, it just has a lar...
by jakykong
Sat Jul 08, 2017 10:36 pm
Forum: The Lounge
Topic: Hello! (Just seemed like the right place to say it.)
Replies: 1
Views: 15244

Hello! (Just seemed like the right place to say it.)

Hello! I just joined, and this board seems like the appropriate locale for meeting some friendly faces. (Or, in other words, I don't actually have a question yet, I just didn't want to be a lurker forever. :) ) Professionally, I spend most of my time in T-SQL and (ugh) Powershell. I've finally collu...