Skip to content

Commit

Permalink
Allow moving to a parent extent
Browse files Browse the repository at this point in the history
  • Loading branch information
ruricolist committed Nov 6, 2024
1 parent 687dfec commit 6d74013
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions defer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ Returns the target extent."
:on :exit
:to extent)))))

(defun move (guard)
(declare (extent-guard guard))
(match *guarded-extents*
((list* extent parent-extent _)
(removef (extent-guards extent) guard)
(push guard (extent-guards parent-extent))
guard)
(otherwise guard)))

(comment
(lambda ()
Expand Down

0 comments on commit 6d74013

Please sign in to comment.