Marcin Grzegorczyk wrote:
> As a matter of nitpick, it doesn't have to be an interpreted language.
> D is an example of a compiled language which allows this sort of
> 'de-tokenization' of string constants, as well as compile-time string
> operations like concatenation and substringing.
>
> But, of course, none of that is available in standard C.
While we are in the process of picking nits, I believe that, in this
context, Seebs' reference to "compile time" was made regarding the
preprocessing stage. Considering this, it is not possible to look at the
contents of a variable which is defined through a grammar which your
parser (in this case the C preprocessor) either doesn't recognize as such
or simply ignores.
To put it in other words, in CPP terms a variable declaration/definition
in C is not a variable declaration at all. It is simply noise which
should be ignored. As a consequence, it doesn't exist and therefore it's
contents cannot be accessed.
Rui Maciel
|