在执行我的代码时,不同的Scheme实现会出现以下错误:
Racket:
Chibi: 赤壁:
Racket:
application: not a procedure;
expected a procedure that can be applied to arguments
given: '(1 2 3)
arguments...:
伊卡洛斯:
Unhandled exception
Condition components:
1. &assertion
2. &who: apply
3. &message: "not a procedure"
4. &irritants: ((1 2 3))
鸡肉:
Error: call of non-procedure: (1 2 3)
甘比特:
*** ERROR IN (console)@2.1 -- Operator is not a PROCEDURE
((1 2 3) 4)
MIT Scheme:
;The object (1 2 3) is not applicable.
;To continue, call RESTART with an option number:
; (RESTART 2) => Specify a procedure to use in its place.
; (RESTART 1) => Return to read-eval-print level 1.
Chez Scheme:
Exception: attempt to apply non-procedure (1 2 3)
Type (debug) to enter the debugger.
Guile:
ERROR: In procedure (1 2 3):
ERROR: Wrong type to apply: (1 2 3)
Chibi: 赤壁:
ERROR in final-resumer: non procedure application: (1 2 3)
(test 4)
,其中test
绑定到(1 2 3)
,但选择不包括它,因为除了它不是一个过程之外,它并不重要 :-) - Sylwester