This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Support for ENCODE & DECODE
- From: "Arjen Markus" <arjen dot markus at wldelft dot nl>
- To: "Steve Kargl" <sgk at troutmask dot apl dot washington dot edu>
- Cc: "Patrick C. Rose" <tenabo at comcast dot net>, fortran at gcc dot gnu dot org
- Date: Mon, 5 Jan 2009 11:16:57 +0100 (CET)
- Subject: Re: Support for ENCODE & DECODE
- References: <49601058.70101@comcast.net> <20090104015846.GA56501@troutmask.apl.washington.edu>
- Reply-to: arjen dot markus at wldelft dot nl
>
> ENCODE/DECODE have never been specified in any Fortran standard.
> IMHO, gfortran should not be a dumping ground for a bunch of
> questionable nonstandard constructs; particularly when perfectly
> fine standard conforming code can be written. See
>
> http://gcc.gnu.org/onlinedocs/gfortran/ENCODE-and-DECODE-statements.html
>
> Yes, it's a pain to port one's code to a new compiler or platform, but
> if you actual fix your code to be standard conforming it will work
> with all compilers in the future.
>
> Hopefully, you also understand that there are far too few gfortran
> developers and far too many features to implement.
>
Actually, if the ENCODE/DECODE statements work the way shown in the
above link, then it should be a simple matter to use, say, the
C preprocessor or sed to turn these statements into more regular
Fortran code.
Regards,
Arjen