| Gary Scott 2007-11-24, 10:14 pm |
| glen herrmannsfeldt wrote:
> jamesgiles@att.net wrote:
>
>
>
>
>
>
>
>
>
>
>
Fairly minor, you still have existing literals processed exactly as
expected. Special processing only by application of special syntax.
[color=darkred]
>
>
> 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
>
I wasn't intending to limit to compile time only. This type of
substitution already exists in many products I use. It is extremely
useful. Yes, it would require some run-time support. Come on guys,
show a little imagination.
--
Gary Scott
mailto:garylscott@sbcglobal dot net
Fortran Library: http://www.fortranlib.com
Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
If you want to do the impossible, don't hire an expert because he knows
it can't be done.
-- Henry Ford
|