PL/I anyone? 
Author Message
 PL/I anyone?


> Melvin Klassen says in several messages that I have
> merged my reply to below:

> re: Gauss algorithm

> >> 5. no direct a=b  array assign syntax available.

> > My code included:  b(*,*) = a(*,*);
> > To me, that looks like an example of a direct assignment, correct?

> Gunnar (or was it Robin) said you could have used the even more direct
>   b = a;
> Apparently this thread is turning out to be useful
> to teach some of you pliers PLI along with yours truly, ha ha..

You can be sure that Melvin  (0r whoever proginated the statemnet)
knows about a = b;

a = b and a(*,*) = b(*, *); are quivalent.

He obviously prefers to write it that way so as to remind
humself (and readers) that the operation is a whole array

> re:  string example...

> In my view this provides a dynamically "varying" length feature,

It's nothing like varying length.

> that may or may not be available in PLI's "varying",
> I'm not sure yet that PLI can match the implications of
> fortran's string(n:m)  string(:m)   string(n:)  syntax.

PL/I's SUBSTR exactly corresponds to Fortran's string (m:n),
string (m: ) string(whatever).

And what's more it goes beyong what Fortran provides.

> Put the shoe on the other foot,
> I question whether your "insertion" of ' '  might overflow
> PLI's base length bounds..

It doesn't.

> The Fortran assign  string(5:) =
> automatically knows it is not to exceed 40 chars

So does PL/I.

> (the declared base length) no matter how long the right side
> string is, (right side is truncated to fit the left side..

PL/I does not move more characters than the destination will allow.
As I advised before, PL/I checks that it doesn't and tells you
if it does.

Sun, 13 Jan 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ~~ PL/I Anyone? ~~ Chicago

2. anyone migrated successfully to Enterprise PL/I?

3. anyone migrated successfully to Enterprise PL/I?

4. anyone migrated successfully to Enterprise PL/I?

5. anyone running IMS ADF II exits under Enterprise PL/I

6. Can anyone help me find PL/I?

7. PL/I and C (was fortran anyone?)

8. Anyone have any tips to pass on for PL/1 and VSAM for y2k

9. PL/1 to C converter, anyone?

10. Anyone remembers PL/M ?

11. OT: anyone got PL/M-86

12. Anyone knows PL/I language ?


Powered by phpBB® Forum Software