|
Œ Hello Jon, Paul Tuohy suggested that to me privately also. I haven't tried it yet. It'll have to wait a day or so. Perhaps I'm having a low biorythm day but I can't see why the apostrophes matter. I was expecting to have to invoke the procedure pointer, but with this definition I still invoke the procedure using the prototype name. I can see the logic. If I define a prototype like: D HDLR_ENTRY PR ExtProc(HDLR_ENTRY_) and a procedure pointer like: D HDLR_ENTRY_ S * PROCPTR and invoke it as: C EVAL HDLR_ENTRY_ = %PADDR(some-function) C CALLP HDLR_ENTRY the compiler uses the prototype which says really use the pointer thus satisfying the prototype requirements as well as the dynamic procedure invocation. Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au «» «» «» «» Windoze should not be open at Warp speed. «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» //--- forwarded letter ------------------------------------------------------- > Date: Sun, 25 Jun 2000 19:49:22 -0400 > From: Jon.Paris@hal.it > To: RPG400-L@midrange.com > Reply-To: RPG400-L@midrange.com > Subject: Prototyping procedure pointers > > > > >> D HDLR_ENTRY PR > > If I understand you correctly Simon you just need to add ExtProc... to your > proto e.g. > > D HDLR_ENTRY PR ExtProc(HDLR_ENTRY_) > > Notice no quotes in the Extproc entry. I'd use pHDLR_ENTRY_ to differentiate > the pointer from the proto. > > The only drawback to using this method is that you can't use the same proto in > the actual hadler proc itself and therefore can't get it validated against >the > PI but ...... > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.