<!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>
You can, if you want, just downcase the string as<br>
<tt>(define (lower-case-char char)<br>
(if (not (char? char))<br>
(error '......))<br>
(integer->char (let ([i (char->integer i)])<br>
(if (<= 65 i 80) ; not sure about the numbers,
you should check<br>
(+ i 32)<br>
i))))<br>
(define (lower-case str)<br>
(if (not (string? str))<br>
(error '.......))<br>
(list->string (map lower-case-char (string->list str))))<br>
(eval (string->symbol (lower-case "AA")))<br>
</tt><br>
Robby Findler wrote:<br>
<blockquote type="cite"
cite="mid20030517004957.RUQI11905.mailhost.chi1.ameritech.net@localhost">
<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>
At Sat, 17 May 2003 02:46:13 +0200, Vincent Hourdin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thank you Robby, can I use something more global for setting case sensitivity
for read ? I have got 40 functions to use with upper case and I dont really
want to add #cs on each.
Maybe is there a way to eval a func given its name in a string, independently
its case ?
Thank you again
</pre>
</blockquote>
<pre wrap=""><!---->
The other two options (besides #cs) is to set the case sensitivity in
DrScheme's language dialog, or to prefix your program with:
(read-case-sensitive #t)
The #cs is a more scalable solution, since larger programs tend to be
written in modules, so you can prefix the entire module with #cs. If
you just have a small program, read-case-sensitive at the top is
probably fine.
Robby
</pre>
</blockquote>
<br>
</body>
</html>