Yep, I use those on a regular basis - "call backs". Right now I am building
a program that processes IFS files in a directory, and for each entry within
the folder I make a "call back" to a procedure pointer that points to a
procedure in the calling program. Call backs are very powerful in concept
because they allow you to take a more robust approach to application
development. Before I know about "call backs" I would have instead tried
to pass an array or use a PF as a go-between, but instead I can take more of
a streaming approach.
How are others using procedure pointers and call backs?
Aaron Bartell
http://mowyourlawn.com
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of vhamberg@xxxxxxxxxxx
Sent: Friday, October 19, 2007 5:09 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Objects and such
Maybe you know about using procedure pointers and assigning them to a
variable that is used on a CALLP, if I remember Jon's presentation right
from the RPG@DB2 summit - he has an example of the world's most expensive
pocket calculator - an iSeries. But this lets you have a single call
statement but using different procedures based on the arithmetic operation
you are processing at the time.
As an Amazon Associate we earn from qualifying purchases.