hello ~<div>I am trying to separate big source file into several files</div><div>(each files should use each others' 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>"file-0.rkt", "file-1.rkt", "file-2.rkt", "file-3.rkt", "init.rkt"</div><div>in a folder, </div>
<div>I want file-2's button to set file-1's frame as parent,</div><div>and want file-3's canvas to set file-1'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' definition</div><div><br></div><div>could somebody give me an little advice?</div><div>thanks in advanced</div>