Lenient matching of conversation patterns etc.
This commit is contained in:
parent
bc2bb30fb3
commit
4dc551632f
|
@ -122,7 +122,9 @@
|
||||||
state
|
state
|
||||||
(match message
|
(match message
|
||||||
[message-pattern clause-body] ...
|
[message-pattern clause-body] ...
|
||||||
[_ '()]))))])))])))
|
[_ '()]))))]
|
||||||
|
[_
|
||||||
|
(lambda: ([state : State]) ((inst core:transition State) state '()))])))])))
|
||||||
|
|
||||||
(define-syntax spawn:
|
(define-syntax spawn:
|
||||||
(lambda (stx)
|
(lambda (stx)
|
||||||
|
|
|
@ -108,7 +108,9 @@
|
||||||
(core:transition state
|
(core:transition state
|
||||||
(match message
|
(match message
|
||||||
[message-pattern clause-body] ...
|
[message-pattern clause-body] ...
|
||||||
[_ '()]))))])))])))
|
[_ '()]))))]
|
||||||
|
[_
|
||||||
|
(lambda (state) (core:transition state '()))])))])))
|
||||||
|
|
||||||
(define-syntax spawn
|
(define-syntax spawn
|
||||||
(lambda (stx)
|
(lambda (stx)
|
||||||
|
|
Loading…
Reference in New Issue