<div>Dear list members,<br></div><div><br></div><div>Can someone explain the following behavior</div><div><br></div><div>Case 1 as follows works in the DrRacket Definitions window but doesn&#39;t work in the Interactions window</div>
<div>#lang racket</div><div>(module m racket<br>    (provide color)<br>    (define color &quot;blue&quot;))<br><br>(module n racket<br>    (require  (submod &quot;..&quot; m))<br>    (printf &quot;my favorite color is ~a\n&quot; color))</div>
<div><br></div><div>Case 2 as follows works in the DrRacket Interactions window but doesn&#39;t work in the Definitions window</div><div>&gt; (module m racket<br>    (provide color)<br>    (define color &quot;blue&quot;))<br>
<br>(module n racket<br>    (require   &#39;m)<br>    (printf &quot;my favorite color is ~a\n&quot; color))<br>(require &#39;n)</div><div><br></div><div>I&#39;m clear why in case 1     (submod &quot;..&quot; m) resolves to submodule m when the code is in the definitions window, but I&#39;m not clear why it doesn&#39;t do so  when the code is in the Interactions window. </div>
<div><br></div><div>I&#39;m also not clear why case 2 works in the Interactions window.  I.e.  I&#39;m not clear why in case 2 in the interactions window (require &#39;m), which  according to the Racket Guide expands to (require (submod &quot;.&quot; m)  works and (require (submod &quot;..&quot; m) doesn&#39;t work for this case.</div>
<div><br></div><div>Also is there a way to have </div><div>    #lang racket</div><div>     (module m racket<br>       (provide color)<br>       (define color &quot;blue&quot;))</div><div><br></div><div>in the definitions window but the following in the interactions window<br>
</div><div><br></div><div>     &gt;(module n racket<br>       (require   SOME SUBMODULE PATH TO m)<br>        (printf &quot;my favorite color is ~a\n&quot; color))<br>      (require &#39;n) </div><div><br></div><div>and have it work.</div>
<div><br></div><div>Thanks,</div><div>Harry Spier</div><div><br></div>