For Programmers: Free Programming Magazines  


Home > Archive > Fortran > November 2007 > Re: C String Prefix Operator Idea (Was: gfortran diagnostics and









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: C String Prefix Operator Idea (Was: gfortran diagnostics and
glen herrmannsfeldt

2007-11-24, 7:10 pm

jamesgiles@att.net wrote:

> On Nov 24, 4:27 pm, Gary Scott <garylsc...@sbcglobal.net> wrote:


[color=darkred]
[color=darkred]
> A whole new class of identifier is "a minor extension"?


[color=darkred]
> So, string "literals" are not only *not* literal (meaning
> the same as their appearance) but aren't even compile-time
> constants anymore? And that's "a minor extension"?


My understanding is that he means a compile time substitution.
That is, the % variables are compile time variables.

The PL/I preprocessors has compile time variables, I don't remember
if it does substitution inside string constants. One of the old
favorites is unrolling a loop:

%do i=1 to 10;
a(i)=b(i)*c(i);
%end;

will compile to 10 assignment statements.

-- glen

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com