Re: A Fortran book for returning to Fortran?
- From: Daniel Carrera <daniel@xxxxxxxxx>
- Date: Wed, 26 Oct 2011 08:34:15 +0200
On 10/25/2011 10:59 PM, John Harper wrote:
Daniel Carrera wrote:
Ok. That's not how I was using the term. I treated "obsolete" as a
synonym to "obsolescent" and not at all like "deleted". My understanding
is that these are features that you should not use, and compilers should
complain about.
Many compilers still let you use deleted features such as Hollerith strings,
though the standard does not require that. All standard-conforming compilers
must let you use obsolescent features such as statement functions, but some
complain only if you invoke a suitable compile-time option.
Yes, that's what I had in mind. If you use "--std=2008" in (say) GFortran, then GFortran should allow but complain about features marked as obsolete in F2008, and if instead you use "--std=90", it will only complain about features that were already marked obsolete in F90.
This is in general what I would expect. Without compliance flags, I know that compilers will often be soft on compliance requirements. For instance, I believe that GCC used to let you use C++ comments in C.
Cheers,
Daniel.
.
- Follow-Ups:
- Re: A Fortran book for returning to Fortran?
- From: John Harper
- Re: A Fortran book for returning to Fortran?
- References:
- A Fortran book for returning to Fortran?
- From: Robert Miles
- Re: A Fortran book for returning to Fortran?
- From: Daniel Carrera
- Re: A Fortran book for returning to Fortran?
- From: Robert Miles
- Re: A Fortran book for returning to Fortran?
- From: Richard Maine
- Re: A Fortran book for returning to Fortran?
- From: Daniel Carrera
- Re: A Fortran book for returning to Fortran?
- From: John Harper
- A Fortran book for returning to Fortran?
- Prev by Date: Re: A Fortran book for returning to Fortran?
- Next by Date: Re: exit code function
- Previous by thread: Re: A Fortran book for returning to Fortran?
- Next by thread: Re: A Fortran book for returning to Fortran?
- Index(es):
Relevant Pages
|