|
On Wed, 23 Mar 2005 16:35:45 -0500, Paul Morgan <pmorgan@xxxxxxxxxxxxxx> wrote: > John, > > It would be nice if we could qualify a procedure name with a module or > service program name similar to the way we qualify a field name in a data > structure. Then you could code getLastPeriod() in the CUTLS001 > module/service program. If you had no name conflict between modules you > could use getLastPeriod() in the programs without a problem. But if a name > conflict occurred you could qualify, in the RPG program, to the right > procedure with CUGLS001.getLastPeriod() to get around the name conflict. that is a great idea! C++ has set the standard on this sort of thing. Functions are organized into namespaces and classes. If there is not a name clash, you dont need the namespace. otherwise, the notation is namespace::function( ) ; If Mr Farr is really serious about adding features to RPG after this long lull, namespaces, data struct member functions and destructors/constructors are at the top of my recommendation list. -Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.