LINUX.ORG.RU

История изменений

Исправление Bad_ptr, (текущая версия) :

#|kawa:3|# (let ((yin((lambda (cc) (display #\@) cc) (call-with-current-continuation (lambda (c) c)))))
#|.....4|# (let ((yang ((lambda (cc) (display #\*) cc) (call-with-current-continuation (lambda (c) c)))))
#|.....5|# (yin yang)))
kawa.lang.GenericError: implementation restriction: continuation can only be used once
	at kawa.lang.Continuation.apply(Continuation.java:24)
	at gnu.mapping.CallContext.runUntilDone(CallContext.java:227)
	at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:350)
	at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
	at kawa.Shell.run(Shell.java:283)
	at kawa.Shell.run(Shell.java:196)
	at kawa.Shell.run(Shell.java:183)
	at kawa.repl.processArgs(repl.java:714)
	at kawa.repl.main(repl.java:820)
@*
#|kawa:6|#

Исходная версия Bad_ptr, :

Вот результат kawa'ы

#|kawa:3|# (let ((yin((lambda (cc) (display #\@) cc) (call-with-current-continuation (lambda (c) c)))))
#|.....4|# (let ((yang ((lambda (cc) (display #\*) cc) (call-with-current-continuation (lambda (c) c)))))
#|.....5|# (yin yang)))
kawa.lang.GenericError: implementation restriction: continuation can only be used once
at kawa.lang.Continuation.apply(Continuation.java:24)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:227)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:350)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
at kawa.Shell.run(Shell.java:283)
at kawa.Shell.run(Shell.java:196)
at kawa.Shell.run(Shell.java:183)
at kawa.repl.processArgs(repl.java:714)
at kawa.repl.main(repl.java:820)
@*