Adding a work around for the compiler bug... plus I like it better. And adding a regression test for the compiler.

svn: r18619

original commit: 55c3176934
This commit is contained in:
Jay McCarthy 2010-03-25 18:14:11 +00:00
commit e5aee8eedd

View File

@ -0,0 +1,17 @@
#lang scheme
(require net/cookie
tests/eli-tester)
(define (set-when-true fn val)
(if val
(λ (c) (fn c val))
(λ (c) c)))
(define (make-cookie name val)
((lambda (x)
((set-when-true cookie:add-comment #f)
x))
(set-cookie name val)))
(test
(cookie? (make-cookie "name" "value")))