Pl/1 operator over loading



IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS

Pl/1 operator over loading

Postby kasturi19 » Fri Sep 05, 2008 4:32 am

I know operator overloading is possible in C++ but not in Pl/1.
Is there any way to do that? I tried the following
dcl op char(01);
dcl a char(01);
dcl b char(01);
if a op b then …..

But I am getting compilation error. I need to take the operator as input. Please suggest.
kasturi19
 
Posts: 3
Joined: Fri Sep 05, 2008 4:26 am
Has thanked: 0 time
Been thanked: 0 time

Re: Pl/1 operator over loading

Postby dick scherrer » Sat Sep 06, 2008 9:09 am

Hello,

Please do not post the same question multiple times. . . We simply delete them (often without notice).

If someone who knows the answer to your question, they will reply.

d
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6269
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to PL/I

 


  • Related topics
    Replies
    Views
    Last post