Skip to content

Commit

Permalink
Reorder DEFGENERIC.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Oct 11, 2023
1 parent 68a300f commit 3ca2576
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions shop3/decls.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ IF-THEN-ELSE semantics in methods."))
;;; PROBLEMS
;;;---------------------------------------------------------------------------

(defgeneric problem-name (problem)
(:method ((name symbol))
(problem-name (find-problem name t))))

(defclass problem ()
((state-atoms
:initarg :state-atoms
Expand Down Expand Up @@ -675,11 +679,6 @@ a simple list of atoms."))
of SHOP extensions to extend or override the normal problem-building.")
)

(defgeneric problem-name (problem)
(:method ((name symbol))
(problem-name (find-problem name t))))


(defgeneric get-state (problem)
(:method ((problem problem))
(state-atoms problem))
Expand Down

0 comments on commit 3ca2576

Please sign in to comment.