<!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=robby@cs.uchicago.edu href="mailto:robby@cs.uchicago.edu">Robby
Findler</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> Tuesday, April 10, 2007 6:28
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [plt-scheme] complile-file
and debugging</DIV>
<DIV><BR></DIV>
<DIV>On 4/10/07, jos koot <<A
href="mailto:jos.koot@telefonica.net">jos.koot@telefonica.net</A>>
wrote:<BR>> 3: Open a program I want to run, select the right language,
turn debugging<BR>> off if necessary and press the run button. In this
program and my own zo<BR>> files my own modules are required with<BR>>
(require (lib "compiled/file.zo" "my own collection")).<BR><BR>You don't want
to do that. Instead, do this:<BR><BR> (require (lib "file.ss" "my own
collection"))<BR><BR>Require is smart enough to look int the compiled
directory, and will<BR>use the compiled file if it is there, and if it is
newer than the .ss<BR>file.</DIV></BLOCKQUOTE>
<DIV>
<DIV><FONT face="Courier New">I know, but requiring the zo file assures
me that the module has indeed be compiled and that its debugging setting
will not be affected.</FONT></DIV></DIV><FONT face="Courier New"></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>Otherwise, it sounds like you've got everything just right.<BR>> One
more remark about DrScheme's "cleverness" looking at the beginning<BR>> of
a file being opened and setting the language level based on
it:<BR>><BR>> File one.ss:<BR>> (module one mzscheme)<BR>> Selects
language module, alright, very nice indeed, although it would even<BR>> be
nicer if the debugging and other detail option settings would not be<BR>>
affected (as far as possible, for different languages may have
different<BR>> sets of detail options)<BR>><BR>> File
one+two.scm:<BR>> (module one mzscheme)<BR>> (module two mzscheme
(require module one))<BR>> (require two)<BR>> Selects language module
too, which is not right. Correcting this would<BR>> require DrScheme to
look somewhat further than the beginning of the file.<BR>> Perhaps you dont
want to do that because it may significantly slow down<BR>> opening the
file.<BR><BR>That is not the behavior that I see. In my DrScheme, it leaves
the<BR>language setting along unless there is just a single module in
the<BR>file.<BR><BR>Can you try this experiment? Set your language to
something other than<BR>the module language. Open that file. Do you get the
module language?</DIV></BLOCKQUOTE>
<DIV><FONT face="Courier New">You are right. I must have intermixed some
observations when I noticed this feature for the first few
times. Sorry. Results of my experiments are as follows. When the language
is module, everything is opened with language module, even if the file does not
consist of a single module. When the language is not module, it is set to
module only if the opened file consists of one single module form. I also
observe that the language settings of tabs that are already open, are not
affected, which is very nice of course. (I did not check the behaviour for files
that are opened in separate windows in stead of tabs, for I always use the tabs
setting.)</FONT></DIV>
<DIV><FONT face="Courier New">I rarely use the interactions window for other
purposes than inspecting standard output, but observe that the interactions
window allows other expressions than module forms, even if the language is
module. This is convenient and logical (imho)</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">It would be convenient if DrScheme would open non
single module files in a non module language, but there may be a problem which
language and which settings to choose. Anyway, the little pop up menu at the
left bottom allows quick adjustment of the language and its settings. Nice. It
took me some time, but now I have the adopted the habit of dropping the cursor
down left as though automatically.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>Perhaps there is some other state that affects your
interactions<BR>window drscheme that is missing from your explanation? That
would be<BR>helpful to me if you could figure out what it is, but the
above<BR>descriptoin doesn't seem to match what happens for
me.<BR><BR>Chongkai: same for your earlier message. Can you provide some
more<BR>information that would help me understand what's
happening?<BR><BR>Thanks,<BR>Robby</DIV></BLOCKQUOTE>
<DIV><FONT face="Courier New">Thanks to you!</FONT></DIV>
<DIV><FONT face="Courier New">Jos Koot</FONT></DIV></BODY></HTML>