> -----Original Message-----
> From: Bob Cohen [mailto:[log in to unmask]]
> Sent: 16 October 2001 14:51
> To: [log in to unmask]
> Subject: Re: What *I* miss in Fortran
>
>
> At 03:17 PM 10/16/01 +0200, you wrote:
>
> > >> Can someone tell me why you would want to distinguish
> between the two
> > >> strings?I would have thought that one would rather make
> sure they were
> > >> treated Identically. Otherwise I would use the string
> length as part of
> > >> the key.
> > >>
> > >> Bob Cohen
> > >> (703) 534-7618
> > >> [log in to unmask]
> >
> >As probably already stated before,
> >
> > "ABC" == "ABC "
> >
> >produces .true. in Fortran.
> >
> >So to distinguish between the two you must also check
> >
> > len(STR) == len_trim(STR)
>
> I wanted to know why someone would want to differentiate
> between the two
> strings.
>
I needed to when I wrote a program that sorted a list of file names.
Simon Harding.
|