For Programmers: Free Programming Magazines  


Home > Archive > Fortran > September 2005 > Re: PL/I Can create a Upper case function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: PL/I Can create a Upper case function
robin

2005-09-13, 7:57 am

Dick Hendrickson wrote in message ...
>
>James J. Weinkam wrote:
[color=darkred]
[color=darkred]
[color=darkred]
>I'm curious about the non portable part. It's easy to write
>a standard conforming portable Fortran uppercase or
>lowercase function. Is the PL/I version non portable
>because you'd attempt to mimic Dave's Fortran coding style,


The algorithm DF used is non-portable.
Merely copying his algorithm in another language
would still be non-portable.

>or is there an inherent reason why character conversions
>are nonportable. I haven't seen Dave's Fortran functions
>(at least not in this round ;) ). But, he often writes
>functions that are special cased to one particular compiler
>rather than use the natural Fortran character operations.
>Like I said, I'm curious if that's what makes the PL/I
>version non portable.


A PL/I equivalent would be portable, because it would
use the TRANSLATE function, or an equivalent method.

>Dick Hendrickson



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com