× 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.



It seems to me that your idea for using the call back procedure is beneficial. It's smart and thought out. Where's the performance hit? Because you may have 10 warnings and the new way would call the error routine 10 times and the old way would only call the error routine once? What if you have 1 error and 100 warnings, and the error occurred first, boom you're out of your edit without encountering the 100 warnings.

I don't know how can quantify that, one way or the other. Even so, like others have said, it's just like any other procedure call. Personally, I'd side with reason vs performance on this one... not to say there really is any performance hit. Are the people concerned with performance take that into account when they program a subR or procedure call?

On a sidenote, I'm glad to see someone's using (or wants to use) call back procedures. I have an idea for one to put into my shop... but one change at a time. :)

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rick.Chevalier@xxxxxxxxxxxxxxx
Sent: Friday, May 08, 2009 1:15 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Call back procedures

No, our debate is between batching up a group of errors and passing them back in a parameter or making the call back each time we encounter an error. Using the call back will allow the caller to terminate the edit routine on terminal errors but continue on warning errors. Passing as parms requires all edits to be done before returning.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rory Hewitt
Sent: Friday, May 08, 2009 1:09 PM
To: RPG programming on the IBM i / System i
Subject: Re: Call back procedures

No reason they'd be any slower than anything else (except *maybe* a subroutine 'call', if that's your other option besides using a callback).

On Fri, May 8, 2009 at 11:05 AM, <Rick.Chevalier@xxxxxxxxxxxxxxx> wrote:

A question has been raised about performance. Have you noticed any
performance issues?

It seems to me that it would be just like any other bound procedure call.
The target is already in memory. I would just be making a call based
on an address.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.



Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.

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.