<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br class="webkit-block-placeholder"></div><div>I'm converting some code from PLT 37x to the scheme/base language in PLT v399, and I'm getting a rather odd error.&nbsp;When I combine keywords and the "cut" macro I get an error message. For example:</div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;1 &nbsp;#lang scheme/base</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;2</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;3 &nbsp;(require srfi/26/cut)</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;4</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;5 &nbsp;(define (add #:a a #:b b)</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;6 &nbsp; &nbsp;(+ a b))</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;7</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;8 &nbsp;(define add2</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;9 &nbsp; &nbsp;(cut add #:a &lt;&gt; #:b 2))</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;10</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;11 (display (add2 1))</font></div><div><font class="Apple-style-span" face="Monaco"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; "><div>I get the following error message (in this example at line 9):</div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;#%datum: keyword used as an expression in: #:a&nbsp;</font></div><div><font class="Apple-style-span" face="Monaco"><br class="webkit-block-placeholder"></font></div><div><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="font-family: 'Lucida Grande'; "><div>It doesn't seem like this should cause a problem because AFAIK "cut" rewrites to a simple lambda. However, it did occur to me that the lambda in the mzscheme language (in which "cut.ss" is presumably written) is different to the lambda from scheme/base.&nbsp;Is this the source of the problem or am I barking up the wrong tree?&nbsp;</div><div><br class="webkit-block-placeholder"></div><div>It'd be really nice to convince cut to work with keyword lambdas - I use it *everywhere*.</div><div><br class="webkit-block-placeholder"></div><div>Cheers,</div><div><br class="webkit-block-placeholder"></div><div>-- Dave</div><div><br class="webkit-block-placeholder"></div></span></font></div></span></font></div></body></html>