> From: Andy Wingo <wi...@pobox.com>
> > On Tue 26 May 2009 00:22, l...@gnu.org (Ludovic Courtès) writes: > > > However, this relies on eval-after-read semantics. That is, if the > > whole file is read at once, *then* evaluated, that won't work, right? > > Or read at once, *then* compiled, *then* evaluated; or even, read one > expression at a time, compiled one at a time, but evaluated all of a > piece. If one can't depend on the order of evaluation, the the source encoding has to become a pragma that is preprocessed. The reader could probably preprocess the file looking for where the text "coding: XXXXX" appears within a comment in the top dozen lines of a source code file. Or perhaps a line that is explicitly ";;;; #pragma coding: XXXXX" in the top few lines of a file.