27 Sep
2013
27 Sep
'13
15:48
Dear Marc, When (load):ing a binary file ("myfile.o1" etc.) , would there be any way to do identifier renaming at load time? E.g., echo "(define x 5)" >> myfile.scm gsc (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, Mikael