Newer
Older
mazes / README.md

mazes

Curtis Lewis defgeneric@protonmail.com

Maze examples from Mazes For Programmers written in Common Lisp


Notes:


2023-04-15 08:07:33 Saturday

Attempting to make a branch in fossil. Apparently I need to make a change first. Thus the reason for this comment.

2023-03-24 Friday


(defgeneric link ((current-cell cell) (neighbor-cell cell) (bidi t)) (:documentation "Links current cell with neighbor cell. If bidi (bi-directional) is true both cells are updated"))

Execution of a form compiled with errors. Form: (DEFGENERIC LINK ((CURRENT-CELL CELL) (NEIGHBOR-CELL CELL) (BIDI T)) (:DOCUMENTATION "Links current cell with neighbor cell. If bidi (bi-directional) is true both cells are updated")) Compile-time error:

Required argument is not a symbol: (CURRENT-CELL CELL)


2023-03-26 09:30:29 Sunday

Can not use constants to create array... (setf matrix (make-array '(rows cols) :initial-element nil))

ref: https://stackoverflow.com/questions/19085980/why-cant-constants-be-used-as-array-dimensions-in-common-lisp-type-specifiers

Last sentence in user797257 response

1st tried '(,rows ,cols) then got an error unquote not backquoted

Finally `(,rows ,cols)