hello ~<div>I am trying to separate big source file into several files</div><div>(each files should use each others&#39; definition mutually)</div><div><br></div><div>I read racket game source but I could not found way to separating solution</div>
<div>(perhaps since I am a newbie)</div><div><br></div><div>If there are </div><div>&quot;file-0.rkt&quot;, &quot;file-1.rkt&quot;, &quot;file-2.rkt&quot;, &quot;file-3.rkt&quot;, &quot;init.rkt&quot;</div><div>in a folder, </div>
<div>I want file-2&#39;s button to set file-1&#39;s frame as parent,</div><div>and want file-3&#39;s canvas to set file-1&#39;s frame as parent</div><div><br></div><div>if I put all of code in a file, it is easy to do it</div>
<div>as like </div><div>define f as frame%</div><div>define b as button%, f as parent</div><div>define c as canvas%, f as parent</div><div>if b (button%) is clicked, show something on the c (canvas%)</div><div><br></div><div>
but this project looks like grow bigger and bigger </div><div>so I want to separate this code into many files</div><div>for example, </div><div>put b (button%) definition and callback function in a separated file,</div><div>
put c (canvas%) definition in a separated file, etc</div><div>and use each others&#39; definition</div><div><br></div><div>could somebody give me an little advice?</div><div>thanks in advanced</div>