<div dir="ltr">Dear Marc,<div><br></div><div>When (load):ing a binary file ("myfile.o1" etc.) , would there be any way to do identifier renaming at load time?<br></div><div><br></div><div>E.g.,<br></div><div><br>

</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>echo "(define x 5)" >> myfile.scm</div><div><br></div><div>gsc</div><div><br></div><div>(compile-file "myfile.scm")</div>

<div><br></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>(set! ##load-symbol-import (lambda (loaded-symbol-name) 'y))</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">

<div><br></div><div>(load "myfile.o1")</div><div><br></div><div>y ; => 5</div></blockquote><div><br></div><div>I believe this could be very useful for a module system - not sure though would be happy to understand if there's any problem about it. Without or with modification to Gambit's source.<br>

</div><div><br></div><div>Best regards,</div><div>Mikael</div><div><br></div></div>