| Gary Scott 2007-11-26, 7:17 pm |
| mike.prager@noaa.gov wrote:
> On Nov 23, 5:00 pm, Thomas Koenig <tkoe...@netcologne.de> wrote:
>
>
>
> I tried it on Windows XP with Lahey (LF95 7.10.02), g95
> (0.91!), and Intel fortran (ifort 10.0.026). They all accept the
> backslash as a character in a quoted string, and when asked to
> print it, they print it. No special setting were used.
>
> I would far prefer that the default of *any* compiler be not to apply
> any special translation to visible characters the user has typed.
> Clearly OSes have different line end characters, and it is reasonable
> for compilers to respect that. It is not reasonable for compilers to
> impose a peculiar translation of a visible character, just because one
> operating system happens to do that.
>
> The above of course is a matter of taste. What goes beyond taste
> is the F2003 standard. Given that the backslash is part of the
> character set, it arguably would be a defect for a compiler by
> default to mess with the user's input of printable characters.
Absolutely agree. Any translation must be by specific request of the
application programmer.
>
> --
> Mike Prager, NOAA, Beaufort, NC
> * Opinions expressed are personal and not represented otherwise.
> * Any use of tradenames does not constitute a NOAA endorsement.
--
Gary Scott
mailto:garylscott@sbcglobal dot net
Fortran Library: http://www.fortranlib.com
Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
If you want to do the impossible, don't hire an expert because he knows
it can't be done.
-- Henry Ford
|