For Programmers: Free Programming Magazines  


Home > Archive > Fortran > September 2005 > Re: PL/I FUNCTIONS ARE GENERIC (was UPPERCASE)









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 FUNCTIONS ARE GENERIC (was UPPERCASE)
robin

2005-09-15, 9:56 pm

David Frank wrote in message <2TAVe.11099$9i4.125@newsread2.news.atl.earthlink.net>...
>I "improved" my translate function to combine the incode, outcode into a
>codes(2) array input.
>e.g. write (*,*) Translate ('abc', ['abc','ABC'] ) outputs ABC



What Frank doesn't comprehend - and still doesn't - is that PL/I's
string-handling functions are generic.

He also doesn't grasp the fact that PL/I's TRANSLATE'is about
100 times faster that his Fortran translate code.

> FUNCTION Translate(s1,codes) RESULT (s2)

....


Sponsored Links







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

Copyright 2009 codecomments.com