|
I'd really like to see an article or other info on those OO techniques.
I'd really like to see an article or other info on those OO techniques.
From: Aaron Bartelnandelin@xxxxxxxxx 06/03/2008 11:34:06 AM >>>
Does RPG make a good "plumbing" or "framework base" type language?
Service programs make good toolkits. And after you've written a dozen
or so service programs you're beginning to have a good "framework".
Barbara Morris of the Toronto compiler team also showed me a technique
for implementing object oriented concepts using RPG, which I've used a
lot.
For example, I use a generic service program to support combo boxes.
The cboNew() procedure returns a pointer to a new instance of a combo
box. The cboAddItem() procedure adds new items to a combo box. The
cboToHTML() procedure renders a combo box as an HTML stream. And so
forth.
While object instantiation is more common in object oriented languages,
it's pretty easy to do in RPG, using data structures with basing
pointers and %alloc(), where data structure subfields are used to store
object properties.
Nathan.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.