mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Unwrap primitives before passing them to the runtime
This commit is contained in:
parent
651f6b0c7a
commit
4e6096d64b
1 changed files with 10 additions and 1 deletions
11
eval.scm
11
eval.scm
|
@ -430,7 +430,16 @@
|
|||
args
|
||||
(procedure-environment proc))))
|
||||
((procedure? proc)
|
||||
(apply proc args))
|
||||
(apply
|
||||
proc
|
||||
(map
|
||||
(lambda (a)
|
||||
(cond
|
||||
;; "unwrap" objects before passing to runtime
|
||||
((primitive-procedure? a)
|
||||
(primitive-implementation a))
|
||||
(else a)))
|
||||
args)))
|
||||
(else
|
||||
(error
|
||||
"Unknown procedure type -- EXECUTE-APPLICATION"
|
||||
|
|
Loading…
Add table
Reference in a new issue