[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e

From: Mike Gran
Subject: Re: [Guile-commits] GNU Guile branch, string_abstraction2, updated. 823e444052817ee120d87a3575acb4f767f17475
Date: Tue, 26 May 2009 15:26:45 -0700 (PDT)

> From: Andy Wingo <address@hidden>

> On Tue 26 May 2009 00:22, address@hidden (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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]