× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Hans
Sent: Saturday, May 10, 2003 5:29 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Using OO concepts in RPG

>Anyways, I'm going to step back now, and if there's something immediately
>applicable to RPG within the forseeable future, I'll take note. Otherwise,
>if you want to discuss adding OO to RPG, I'm going to assume that it will
>be implemented by a C++-like pre-processor involving an open-source effort
>by interested RPG'ers.

The pre processor code, the code the programmer writes, would have to appear
as one of the view options in the ILE interactive debugger.  How would that
be done?

Consider a pre processor that added member procs to a data structure.

A pre processor might translate a data struct member proc call to a std rpg
proc call, adding the data struct as the "this" parm:

  d Order        ds            qualified
  d  Ordn                 7a
  d  Cusn                 7a
  d  OrdQty               7p 0

  d Print        pr            DataStruct( Order )

  d order1       ds            likeds( Order )

 /free
      order1.Print( ) ;
 /end-free

The pre processor translates the member proc call to std rpg:
   Order_Print( %addr(order1) ) ;

For this to work, the pre processor code must be integrated into the ILE
debugger.  Both versions of the code should be available, but for sure the
pre processor code, the code the programmer wrote, should be the default
view.

Is this possible?


thanks,

Steve Richter



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.