<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mflatt@cs.utah.edu href="mailto:mflatt@cs.utah.edu">Matthew Flatt</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jos.koot@telefonica.net
href="mailto:jos.koot@telefonica.net">jos koot</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=plt-scheme@list.cs.brown.edu
href="mailto:plt-scheme@list.cs.brown.edu">PLT-list</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, April 18, 2007 12:51
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [plt-scheme] Current library
collection paths and Check Syntax</DIV>
<DIV><BR></DIV>
<DIV>At Wed, 18 Apr 2007 11:51:13 +0200, "jos koot" wrote:<BR>> snap</DIV>
<DIV>> (module runs-well-but-does-not-pass-syntax-check
mzscheme<BR>> (begin-for-syntax<BR>>
(current-library-collection-paths<BR>>
(cons<BR>>
"c:/scheme/kcollects"<BR>>
(current-library-collection-paths))))<BR>> (require (lib "for.ss"
"for")) ; from c:/scheme/kcollects/for/for.ss<BR>> (for ((i 1 3))
(printf "~s~n" i)))<BR>> May be I am doing a nasty thing<BR>Definitely,
yes. :)<BR>snap<BR>Matthew</DIV></BLOCKQUOTE>
<DIV><FONT face="Courier New">Hi Matthew,</FONT></DIV>
<DIV><FONT face="Courier New">Thanks for your stimulus that made
me revise my code.</FONT></DIV>
<DIV><FONT face="Courier New">It no longer contains any
current-library-collection-paths calls.</FONT></DIV>
<DIV><FONT face="Courier New">After more accurate reading of the MzScheme
Language Manual, I found that a module name consisting of a string only
(without a keyword like file or lib) does exactly what I want: the relative
path of the source code file is prefixed. And it also sees the existence of
non outdated compiled files. Perfect. </FONT><FONT face="Courier New">My nasty
code was the result of trying the same thing with (require (lib
x)).</FONT></DIV>
<DIV><FONT face="Courier New">Thanks again, Jos Koot</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV></BODY></HTML>