Search found 166 matches

by pjstirling
Sun Apr 03, 2011 5:00 pm
Forum: Common Lisp
Topic: Using binary arithmetics in collect statement?
Replies: 5
Views: 5951

Re: Using binary arithmetics in collect statement?

A correction:

(SUBSEQ seq 2) and (CDDR seq) differ because (SUBSEQ ....) always returns a copy of the relevant list structure, and (CDDR ...) always returns shared structure.
by pjstirling
Mon Mar 21, 2011 6:06 am
Forum: Common Lisp
Topic: Switch package
Replies: 2
Views: 3312

Re: Switch package

COMMON-LISP:*PACKAGE* is used by the reader to pick the package to intern unknown symbols as they are read. What is happening is that the form (WITH-IN-PACKAGE :SB_CLTL2 (VARIABLE-INFORMATION '*PACKAGE*) is read, VARIABLE-INFORMATION is interned in whatever package you had to start (probably CL-USER...
by pjstirling
Sat Mar 19, 2011 6:44 am
Forum: Common Lisp
Topic: Alternative (MACROEXPAND ...)
Replies: 4
Views: 7581

Re: Alternative (MACROEXPAND ...)

When I was half-way there I did sort-of wonder that someone might point me at something that would make my work superfluous :D I had actually tried C-c C-m but I was never able to get it to work properly, at your prompting I tried it again and discovered that you need to put the cursor at the OPENIN...
by pjstirling
Thu Mar 17, 2011 1:07 am
Forum: Common Lisp
Topic: Alternative (MACROEXPAND ...)
Replies: 4
Views: 7581

Alternative (MACROEXPAND ...)

Hi all, I've been programming in common-lisp for a couple of years now, and in that time I've grown somewhat frustrated with (MACROEXPAND ...) for debugging macros, because quite a lot of symbols in COMMON-LISP are macros with ugly expansions. e.g. (AND ...) and (OR ...) are changed to (IF ...) chai...
by pjstirling
Mon Dec 13, 2010 5:36 pm
Forum: Common Lisp
Topic: Symbols in defpackage
Replies: 3
Views: 4218

Re: Symbols in defpackage

Thanks for clarifying that for me.
by pjstirling
Sun Dec 12, 2010 8:01 pm
Forum: Common Lisp
Topic: Symbols in defpackage
Replies: 3
Views: 4218

Symbols in defpackage

Hi, A few weeks ago (I've been too busy with other stuff to get around to this until now) I was reading a post via planet.plis.org talking about how he sets up new projects and something that I'm unclear about is that he uses #: (I had to look it up) to make un-interned symbols: (defpackage #:swatch...