Dick and Everyone Else:
There are 12 levels of precedence of operators. See Table 7.1 in s. 7.1.3 in
Fortran 2008.
Sincerely,
Craig T. Dedo
17130 W. Burleigh Place
P. O. Box 423 Mobile Phone: (414) 412-5869
Brookfield, WI 53008-0423 E-mail: <[log in to unmask]>
USA
Linked-In: http://www.linkedin.com/in/craigdedo
> -----Original Message-----
> From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of Dick
> Hendrickson
> Sent: Friday, September 14, 2012 10:20
> To: [log in to unmask]
> Subject: Re: [Re: Automatic array (re)allocated in F2003]
>
> On Fri, Sep 14, 2012 at 3:53 AM, Phillip Helbig <[log in to unmask]> wrote:
> >> This was one of the motivations for .ANDTHEN. (and .ORELSE.)
> >> operators during f08 development. There was some sentiment for them,
> >> but the priority wasn't high enough to fit into the development plan.
> >
> > Sounds like a good idea.
>
> Part of the problem was deciding if the priority was high enough or too high. :)
>
> Seriously, what should the priority of .andthen. and .orelse. be?
> Higher than the corresponding .and. and .or. operators? Both higher than both of
> the others? There seemed to be reasonable arguments for each of 2 or 3 different
> priority schemes. Fortran already has (I
> think) 11 levels of precedence for operators, adding 2 more just wasn't trivial.
>
> Dick Hendrickson
|