mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Do not sequence prims that call into conts
This commit is contained in:
parent
8aac3163af
commit
6da3367169
1 changed files with 5 additions and 0 deletions
|
@ -1085,6 +1085,11 @@
|
|||
)) ;;
|
||||
;; Lambda with a parameter that is never used; sequence code instead to avoid lambda
|
||||
((and (ast:lambda? (car exp))
|
||||
(every
|
||||
(lambda (arg)
|
||||
(or (not (prim-call? arg))
|
||||
(not (prim:cont? (car arg)))))
|
||||
(cdr exp))
|
||||
(every
|
||||
(lambda (param)
|
||||
(with-var param (lambda (var)
|
||||
|
|
Loading…
Add table
Reference in a new issue