From owner-sc22wg5@dkuug.dk  Fri Oct 10 19:22:53 2003
Received: (from majordom@localhost)
	by dkuug.dk (8.12.10/8.9.2) id h9AHMr1e049338
	for sc22wg5-domo; Fri, 10 Oct 2003 19:22:53 +0200 (CEST)
	(envelope-from owner-sc22wg5@dkuug.dk)
X-Authentication-Warning: ptah.dkuug.dk: majordom set sender to owner-sc22wg5@dkuug.dk using -f
Received: from math.jpl.nasa.gov (math.jpl.nasa.gov [137.79.7.57])
	by dkuug.dk (8.12.10/8.9.2) with ESMTP id h9AHMiEt049333
	for <sc22wg5@dkuug.dk>; Fri, 10 Oct 2003 19:22:49 +0200 (CEST)
	(envelope-from vsnyder@mls.jpl.nasa.gov)
Received: from math.jpl.nasa.gov (localhost.localdomain [127.0.0.1])
	by math.jpl.nasa.gov (8.12.8/8.12.8) with ESMTP id h9AHN4AQ014374
	for <sc22wg5@dkuug.dk>; Fri, 10 Oct 2003 10:23:04 -0700
Received: from math.jpl.nasa.gov (vsnyder@localhost)
	by math.jpl.nasa.gov (8.12.8/8.12.8/Submit) with ESMTP id h9AHN4Mb014370
	for <sc22wg5@dkuug.dk>; Fri, 10 Oct 2003 10:23:04 -0700
Message-Id: <200310101723.h9AHN4Mb014370@math.jpl.nasa.gov>
X-Mailer: exmh version 2.5 01/15/2001 with nmh-1.0.4
To: sc22wg5@dkuug.dk
Reply-to: Van.Snyder@jpl.nasa.gov
Subject: Re: (SC22WG5.3029) Wishes for future revisions of Fortran 
In-Reply-To: Your message of "Fri, 10 Oct 2003 09:17:19 EDT."
             <200310101320.h9ADK2g1045120@dkuug.dk> 
From: Van.Snyder@jpl.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 10 Oct 2003 10:23:04 -0700
X-Spam-Score: 0.339 () NO_REAL_NAME
Sender: owner-sc22wg5@dkuug.dk
Precedence: bulk

On Fri, 10 Oct 2003 09:17:19 EDT Dan Nagle <dnagle@erols.com> wrote
> 
> On Thu, 09 Oct 2003 13:55:32 -0700, Van.Snyder@jpl.nasa.gov wrote:
> 
> <snip>
> >
> >'include' doesn't know how to substitute actual arguments for dummy arguments,
> >so it's a non-starter.
> 
> That's exactly what coco's text-copy mechanism does.

Text copying isn't the same as argument substitution.  Suppose there is
an expression containing D * X where D is a dummy argument.  Suppose the
actual argument is A + B.  Text copying gives A + B * X, not (A + B) * X.
If text copying was reliable I could use any macro processor, such as
cpp or m4.

You might say "You Idiot! You should have written (D)*X in the original
code!"  Well, I didn't write the original code.  It's years old.  I'm
the one who discovered I can get a factor of eight (!) improvement in
run time by inlining it.

-- 
Van Snyder                    |  What fraction of Americans believe 
Van.Snyder@jpl.nasa.gov       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Sean O'Keefe, George Bush, the Pope, or anybody else.


