From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: Avatox 1.0: Trouble with encoding in Windows
Date: Thu, 14 Sep 2006 22:13:43 GMT
Date: 2006-09-14T22:13:43+00:00 [thread overview]
Message-ID: <rukOg.16544$E02.6457@newsb.telia.net> (raw)
In-Reply-To: <GZYNg.16394$E02.6228@newsb.telia.net>
I wrote:
> Georg Bauhaus skrev:
>> Maybe a standard configuration pragma can be devised that informs
>> Ada source processors of the encoding used in files/compilation
>> units/...?
>
> That would be great,
I may need to revise that. I just noticed the definition of
"configuration pragma":
"Certain pragmas are defined to be /configuration pragmas/; they shall
appear before the first compilation_unit of a compilation. [They are
generally used to select a partition-wide or system-wide option.] The
pragma applies to all compilation_units appearing in the compilation,
unless there are none, in which case it applies to all future
compilation_units compiled into the same environment." (ARM95 10.1.5(8))
I can't find a definition of "compilation", other than that it consists
of any number of compilation units, but I guess that, in the case of
Gnat, each invocation of Gnatmake is a single compilation. If so, then
pragma Character_Encoding must not be a configuration pragma, because it
would apply to any library units that Gnatmake decides to recompile, and
those may be written by someone else in some other encoding.
We could let pragma Character_Encoding apply to a single file, a single
compilation unit, an entire hierarchy of child packages or whatever, but
we can't have it apply to everything that happens to be compiled at the
same time. It must be tied to a specific piece of code.
--
Björn Persson PGP key A88682FD
omb jor ers @sv ge.
r o.b n.p son eri nu
next prev parent reply other threads:[~2006-09-14 22:13 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 8:24 Avatox 1.0: Trouble with encoding in Windows Manuel Collado
2006-09-11 10:35 ` Georg Bauhaus
2006-09-11 13:49 ` Avatox 1.1: " Manuel Collado
2006-09-11 16:43 ` Georg Bauhaus
2006-09-11 17:50 ` Björn Persson
2006-09-12 0:06 ` Marc A. Criley
2006-09-12 8:35 ` Manuel Collado
2006-09-13 0:01 ` Avatox 1.0: " Randy Brukardt
2006-09-13 9:01 ` Georg Bauhaus
2006-09-13 19:28 ` Björn Persson
2006-09-14 6:34 ` Georg Bauhaus
2006-09-14 23:09 ` Björn Persson
2006-09-14 22:13 ` Björn Persson [this message]
2006-09-16 7:40 ` Martin Krischik
2006-09-16 9:43 ` Björn Persson
2006-09-16 9:59 ` Georg Bauhaus
2006-09-16 11:15 ` Björn Persson
2006-09-17 9:30 ` Martin Krischik
2006-09-13 10:32 ` Manuel Collado
2006-09-13 18:28 ` Björn Persson
2006-09-14 8:11 ` Manuel Collado
2006-09-13 23:05 ` Randy Brukardt
2006-09-13 11:04 ` vgodunko
2006-09-14 8:56 ` Martin Krischik
2006-09-14 21:16 ` Jeffrey R. Carter
2006-09-14 22:55 ` Björn Persson
2006-09-15 23:15 ` Jeffrey R. Carter
2006-09-16 7:38 ` Martin Krischik
2006-09-17 19:41 ` Jeffrey R. Carter
2006-09-15 5:47 ` Martin Krischik
2006-09-15 23:16 ` Jeffrey R. Carter
2006-09-16 7:31 ` Martin Krischik
2006-09-17 19:43 ` Jeffrey R. Carter
2006-09-15 9:41 ` Georg Bauhaus
2006-09-15 23:28 ` Jeffrey R. Carter
2006-09-16 9:52 ` Georg Bauhaus
2006-09-16 10:31 ` Björn Persson
2006-09-17 19:57 ` Jeffrey R. Carter
2006-09-18 0:06 ` Björn Persson
2006-09-18 20:14 ` Jeffrey R. Carter
2006-09-16 5:10 ` Simon Wright
2006-09-15 18:11 ` Pascal Obry
2006-09-15 18:53 ` Dmitry A. Kazakov
2006-09-15 22:29 ` Georg Bauhaus
2006-09-16 7:46 ` Dmitry A. Kazakov
2006-09-15 23:35 ` Jeffrey R. Carter
2006-09-15 5:34 ` Simon Wright
2006-09-12 9:52 ` Stephen Leake
2006-09-19 1:16 ` Marc A. Criley
2006-09-19 9:20 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox