[gambit-list] Identifier renaming on load?

Mikael mikael.rcv at gmail.com
Fri Sep 27 15:48:37 EDT 2013

Dear Marc,

When (load):ing a binary file ("myfile.o1" etc.) , would there be any way
to do identifier renaming at load time?


echo "(define x 5)" >> myfile.scm


(compile-file "myfile.scm")

(set! ##load-symbol-import (lambda (loaded-symbol-name) 'y))

(load "myfile.o1")

y ; => 5

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.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20130927/4d3e2504/attachment.htm>

More information about the Gambit-list mailing list