From owner-sc22wg5@dkuug.dk  Fri Oct 10 20:02:00 2003
Received: (from majordom@localhost)
	by dkuug.dk (8.12.10/8.9.2) id h9AI206c050018
	for sc22wg5-domo; Fri, 10 Oct 2003 20:02:00 +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 smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60])
	by dkuug.dk (8.12.10/8.9.2) with ESMTP id h9AI1PEt049995
	for <sc22wg5@dkuug.dk>; Fri, 10 Oct 2003 20:01:55 +0200 (CEST)
	(envelope-from dnagle@erols.com)
Received: from 66-44-55-199.s453.tnt1.lnhva.md.dialup.rcn.com ([66.44.55.199])
	by smtp01.mrf.mail.rcn.net with smtp (Exim 3.35 #3)
	id 1A81aI-0002pr-00
	for sc22wg5@dkuug.dk; Fri, 10 Oct 2003 14:01:50 -0400
From: Dan Nagle <dnagle@erols.com>
To: sc22wg5@dkuug.dk
Subject: Re: (SC22WG5.3032) Wishes for future revisions of Fortran 
Date: Fri, 10 Oct 2003 13:59:15 -0400
Organization: Purple Sage Computing Solutions, Inc.
Message-ID: <ldsdov8elui8jnce5th4n3ilmratjillf0@4ax.com>
References: <200310101320.h9ADK2g1045120@dkuug.dk> <200310101722.h9AHMrAh049349@dkuug.dk>
In-Reply-To: <200310101722.h9AHMrAh049349@dkuug.dk>
X-Mailer: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: 0 () 
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by dkuug.dk id h9AI1wEt050002
Sender: owner-sc22wg5@dkuug.dk
Precedence: bulk

Hello,

On Fri, 10 Oct 2003 10:23:04 -0700, Van.Snyder@jpl.nasa.gov wrote:

<snip>
>
>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.

?? text :: inline_me( exp1, exp2)
X = exp1 * exp2
?? end text inline_me

?? copy :: inline_me( (a+b), (c+d))

produces

X = (a+b)*(c+d)

I.e., the parenthesis may be added in the arguments
on the copy statement.  Perhaps coco should have
an option to report occurrences of macro and text
arguments which do not have enclosing parenthesis!

My coco's text-copy mechanism is a full-blown
copy-paste-substitute mechanism.

It's not in coco to support templates, nor inlining,
but because I found myself manually editing many
copy-paste-substitute cycles when coding f95.

-- 
Cheers!

Dan Nagle
Purple Sage Computing Solutions, Inc.

