mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
(simple-lambda?) fixes
This commit is contained in:
parent
3df66cfa6d
commit
0bb8007848
1 changed files with 5 additions and 1 deletions
|
@ -189,6 +189,7 @@
|
|||
(define (loop ref-by-ids)
|
||||
(cond
|
||||
((null? ref-by-ids) #f)
|
||||
((not (pair? ref-by-ids)) #f)
|
||||
(else
|
||||
(let ((ref (car ref-by-ids)))
|
||||
(if (and (number? ref) (not (= owner-id ref)))
|
||||
|
@ -212,12 +213,15 @@
|
|||
(let ((body (ast:lambda-body ast))
|
||||
(formals (ast:lambda-formals->list ast))
|
||||
(id (ast:lambda-id ast)))
|
||||
(if (pair? body)
|
||||
(set! body (car body)))
|
||||
;(trace:error `(simple-lambda? ,id ,formals
|
||||
;,(and (pair? body)
|
||||
; (app? body)
|
||||
; (ast:lambda? (car body)))
|
||||
;,(length formals)
|
||||
;,body))
|
||||
;;,body
|
||||
;))
|
||||
(and (pair? body)
|
||||
(app? body)
|
||||
(ast:lambda? (car body))
|
||||
|
|
Loading…
Add table
Reference in a new issue