[racket] read (compiled): code compiled for version A, not B

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Fri Feb 3 21:01:10 EST 2012

Is there a good and convenient way to avoid errors like these?

     compiled/info_rkt.zo::0: read (compiled): code compiled for version, not

I was thinking maybe the "compiled" directories could have 
subdirectories for Racket versions.  Although, there might still be 
generated files specific to a Racket version that do not fall under the 
"compiled" directories.

Another way might be that Racket could ignore and overwrite files under 
"compiled" that have the wrong version.  Although, then tools might have 
to open the files to determine whether up-to-date, rather than look at 
only names and filesystem timestamps.


Posted on the users mailing list.