Re: backslash-issues



Arjen Markus wrote:
> Joost wrote:
>>
>> there was another thread about this issue, this seems quite nice
>> to me:
>>
>> CHARACTER(LEN=1), PARAMETER :: backslash='\\'
>>
>> Joost
>
> The problem with that approach is that the backslash may not be a
> valid character for the compiler (it is not part of the language's
> character set).

As a practical matter most compilers do support the character.
And, it *is* in the F2003 character set, so it's unlikely to be removed
from implementations that already have it and any new inplementartions
are pretty unlikely to reject it. Of course, in f2003 it should not be
necesary to employ the tricks discussed in this thread: once the
character is in the official character set its use as an escape is
arguably a violation of the standard.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: Old Fortran version
    ... This data is then read by a Fortran program, handled and printet. ... It is believed that the compiler ran on a Norsk Data system. ... The tape is from a ... The character set can be either 6-bit Fieldata, ...
    (comp.lang.fortran)
  • Re: Zero Byte Terminated Strings
    ... What character set does your C compiler default to? ... You know I don't like being called lazy and incompetent this late in the evening. ... The other fellow mentioned nothing about the character set he was using. ...
    (comp.lang.java.programmer)
  • Re: Tell me more about 64 bit integers
    ... Im trying to work with 64 bit numbers with the gcc compiler ... int Int2Bin{ ... no matter what character set it uses. ...
    (comp.lang.c)
  • Re: Zero Byte Terminated Strings
    ... What character set does your C compiler default to? ... But using the Java system default charset is almost always going to be a bad ... set on the system where the UDP packets are received? ...
    (comp.lang.java.programmer)
  • Re: DECC : toupper/tolower performance
    ... Germans is included in ISO-LATIN-1 character set which si the ... processes char entities. ... (or defined all your char entities as unsigned ... but then the compiler complains about you feeding unsigned char to ...
    (comp.os.vms)