Re: backslash-issues
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 15:27:11 GMT
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
.
- References:
- backslash-issues
- From: Bart Vandewoestyne
- Re: backslash-issues
- From: Bart Vandewoestyne
- Re: backslash-issues
- From: Joost
- Re: backslash-issues
- From: Arjen Markus
- backslash-issues
- Prev by Date: How to select a subset of an array in Fortran 90
- Next by Date: Re: backslash-issues
- Previous by thread: Re: backslash-issues
- Next by thread: Re: backslash-issues
- Index(es):
Relevant Pages
|