(j3.2006) Fw: a question on MERGE and expression evaluation
Richard hendrickson
dick.hendrickson
Fri Nov 19 13:55:05 EST 2010
________________________________
From: Aleksandar Donev <donev at courant.nyu.edu>
To: fortran standards email list for J3 <j3 at j3-fortran.org>
Sent: Fri, November 19, 2010 10:16:49 AM
Subject: Re: (j3.2006) Fw: a question on MERGE and expression evaluation
On 11/19/10 11:11, Bill Long wrote:
> Requiring lazy evaluation would make MERGE essentially useless in that
context.
Agreed that lazy evaluation is not necessarily the right thing, and any such
thing should go into a new intrinsic. Not that we will *ever* agree on one.
Aleks
A few years before F2008 was finalized, I spent some time proposing an ANDTHEN
and ORLSE set of intrinsics that would do argument evaluation guaranteed
left-to-right and stop evaluating when they hit a FALSE or TRUE respectively. I
don't remember all of the reasons they were dropped, but at least part of it was
"this is a whole new set of restrictions on function argument evaluation."
Dick Hendrickson
-- Aleksandar Donev, Assistant Professor of Mathematics
Courant Institute of Mathematical Sciences
Office: 909 Warren Weaver Hall, New York University
E-mail: donev at courant.nyu.edu
Phone: (212) 992-7315; Fax: (212) 995-4121
Mailing address: 251 Mercer St, New York, NY 10012
Web: http://cims.nyu.edu/~donev
_______________________________________________
J3 mailing list
J3 at j3-fortran.org
http://j3-fortran.org/mailman/listinfo/j3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20101119/10ae0109/attachment.htm>
More information about the J3
mailing list