0
치킨 계획의 중단 절차를 사용하는 방법 :아래의 코드와 같이 내가 <a href="http://wiki.call-cc.org/" rel="nofollow">Chicken Scheme's</a><a href="http://wiki.call-cc.org/man/4/Exceptions#raising-exceptions" rel="nofollow">abort</a> 절차를 사용하기 위해 노력하고있어
Warning: reference to possibly unbound identifier `abort' in:
Warning: calculate-change
문서 :
(module change-calculator (export calculate-change)
(import scheme)
(define (calculate-change coin-values amount)
(cond ((null? coin-values) (abort '"coin-values should contain at least one value."))
((= 0 amount) '())))
)
하지만 다음과 같은 경고를 얻을 수 가져올 필요가있는 추가 모듈은 언급하지 않습니다. 성공하지 않고 extras,utils,srfi-12
을 가져 오려고했습니다. 누구든지 나에게 중단 절차를 사용하는 올바른 방법을 보여줄 수 있습니까? 아니면 다른 것을 놓치고 있습니까?
여기에 문자열 앞에 따옴표를 넣지 않아도됩니다. 문자열은 스스로 평가하므로 차이를 나타내지 않습니다. – sjamaan