<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 13, 2007, at 23:01, Владимир Кашин wrote:</div><blockquote type="cite">I am beginning schemer. I install DrScheme v.371. All right. I know lambda calculus, lazy and another. I have 2 simple questions:<br>1. how to use *.ss files from collections folder ?<br>2. how to use ODBC in my learn ?<br></blockquote></div><div><br class="webkit-block-placeholder"></div>( Добрый вечер и добро пожаловать, Владимир! &nbsp;Здесь в Пеннсильвании падает лёгкий снег. )<div><br><div>Here's a hacked-up excerpt from some of my recent code, adapted from David Van Horn's Riverbot [1] code.</div><div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp;(require (lib "string.ss") ;; for `eval-string'</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (lib "etc.ss") &nbsp; &nbsp;;; for `evcase' syntax</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font class="Apple-style-span" color="#808000">; (lib "date.ss")</font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#808000">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; (all-except (lib "date.ss") date-&gt;string)</font></font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (lib "match.ss")</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (lib "pretty.ss")</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (lib "list.ss" "srfi" "1")</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font class="Apple-style-span" color="#808000">; (lib "time.ss" "srfi" "19")</font></font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (prefix srfi:19: (lib "19.ss" "srfi"))</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (all-except (lib "13.ss" "srfi") string-upcase string-downcase string-titlecase)</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "db-connection.ss"</font></div><div><font class="Apple-style-span" face="Monaco">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (prefix mysql- (lib "mysqlclient.ss" "mysqlclient")))</font></div></div><div><br></div><div>I was hoping to give you a pointer to the right page in Help Desk explaining all of the options for <font class="Apple-style-span" face="Monaco">require</font>, but the state of my documentation is in flux since I'm using the experimental v3.99 and the <font class="Apple-style-span" color="#333399">Refresh All Manuals</font> link isn't working today. [2]</div><div><br class="webkit-block-placeholder"></div><div>The syntax in DrScheme v4 will get simpler. &nbsp;See Matthew Flatt's post: &nbsp;<span class="Apple-style-span" style="font-family: Monaco; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a href="http://tinyurl.com/2kutmz">http://tinyurl.com/2kutmz</a></span></div><div>[ <font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><a href="http://groups.google.com/group/plt-scheme/browse_thread/thread/51a5c484381edfe0#464e2e10ba3fcfa9">http://groups.google.com/group/plt-scheme/browse_thread/thread/51a5c484381edfe0#464e2e10ba3fcfa9</a></span></font> ]</div><div><br class="webkit-block-placeholder"></div><div>There are PostgreSQL and SQLite interfaces to DrScheme at PLaneT (&nbsp;<font class="Apple-style-span" face="Monaco"><a href="http://planet.plt-scheme.org/">http://planet.plt-scheme.org/</a></font> ). &nbsp;I love PostgreSQL, but I needed MySQL because that's all one of my ISPs had, which led me to DVH's code. &nbsp;I don't know about ODBC connectivity from Scheme.</div><div><br></div></div><div apple-content-edited="true"><div><div>Geoffrey</div><div>--</div><div>Geoffrey S. Knauth | <a href="http://knauth.org/gsk">http://knauth.org/gsk</a></div><div><br class="webkit-block-placeholder"></div><div>[1]&nbsp;<font class="Apple-style-span" face="Monaco"><a href="http://natalie.cems.uvm.edu:23235/about.html">http://natalie.cems.uvm.edu:23235/about.html</a></font></div><div><br class="webkit-block-placeholder"></div><div>[2] PLT gurus: &nbsp;v3.99 <font class="Apple-style-span" color="#333399">Refresh All Manuals</font> did this:</div><div><br class="webkit-block-placeholder"></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#996666">Error Evaluating Scheme Code</font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#996666"><br class="webkit-block-placeholder"></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#996666">((dynamic-require (quote (lib "refresh-manuals.ss" "help")) (quote refresh-manuals)))</font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#996666"><br class="webkit-block-placeholder"></font></font></div><div><font class="Apple-style-span" face="Monaco"><font class="Apple-style-span" color="#996666">compile: bad syntax; function application is not allowed, because no #%app syntax transformer is bound in: ((dynamic-require (quote (lib "refresh-manuals.ss" "help")) (quote refresh-manuals)))</font></font></div></div></div><br></body></html>