Update gestalt union and erasure to match current API

This commit is contained in:
Tony Garnock-Jones 2014-05-13 23:12:42 -04:00
parent 8210272054
commit 536a7d8e3d
1 changed files with 8 additions and 5 deletions

View File

@ -183,11 +183,14 @@
(define (update-aggregate-gestalt w pid old-g new-g)
(struct-copy world w [aggregate-gestalt
(gestalt-combine (gestalt-combine old-g
(world-aggregate-gestalt w)
matcher-erase-path)
new-g
matcher-union)]))
(gestalt-union (gestalt-combine-straight old-g
(world-aggregate-gestalt w)
(lambda (side x)
(case side
[(left-longer) '()]
[(right-longer) x]))
matcher-erase-path)
new-g)]))
(define (issue-local-routing-update w relevant-gestalt)
(enqueue-event (routing-update relevant-gestalt) w))