<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Robby Findler wrote:<br>
<blockquote type="cite"
cite="mid200306260033.h5Q0Xk6r055014@pimout6-ext.prodigy.net">
<pre wrap="">At Thu, 26 Jun 2003 03:22:05 +0000, "Saint Katsmall T. Wise, Esquire" wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> For list-related administrative tasks:
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a>
This bug has been driving me crazy all day and I just found out it's not
a bug in my code :\
I have two variables: green-char and c. They are both set to #\012,
which incidentally is a newline.
Thus, they are eqv? indeed as the example shows.
However, case does not recognize them to be the same (although it is
supposed to use eqv?)
> (eqv? green-char c)
#t
> (case c [(green-char) 'a] [else 'b])
b
Is this indeed a bug?
</pre>
</blockquote>
<pre wrap=""><!---->
No -- case implicitly quotes its argument; you probably want either
this:
(cond
[(eqv? c green-char) 'a]
[else 'b])
or
(case c [(#\012) 'a] [else 'b])
Robby</pre>
</blockquote>
I see. Well then how would I user a variable using case? Is this
possible?<br>
For these are settings that can and probably will be changed quite a
lot.<br>
<blockquote type="cite"
cite="mid200306260033.h5Q0Xk6r055014@pimout6-ext.prodigy.net">
<pre wrap="">PS: congrats on your sainthood.
</pre>
</blockquote>
Thanks. Was hard enough to achieve.<br>
<br>
Yours truly,<br>
Saint Katsmall T. Wise, Esquire<br>
<br>
</body>
</html>