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



I'm not on V5 yet, but I do have many procedures that return an indicator
value.  They are rarely (probably never, so far) called by a CL program, so
I haven't noticed a problem with them yet, but always assumed they would
work equally well with a CL as with an RPG call.  Does this mean that as
soon I get to V5, that I should add *CL to my prototypes for procedures that
do return an indicator, just in case a CL needs to call them?

I've never really quite understood how CL's relate to prototypes anyway,
since you don't define them in the CL itself.



> -----Original Message-----
> From: Barbara Morris [SMTP:bmorris@ca.ibm.com]
> Sent: Thursday, September 19, 2002 7:57 PM
> To:   rpg400-l@midrange.com
> Subject:      Re: Indicator passing from ILE RPG to CL
>
> "Smith, Nelson" wrote:
> >
> > What exactly does the *CL in ExtProc mean?  At first glance, I would
> think
> > it meant that MYPROC was written in CL, but clearly that is not the
> case.
> > If it changes the behavior of the parms, does it effect the return value
> an
> > RPG program would see, calling the same proc?
>
> You can use *CL, *CWIDEN, *CNOWIDEN, *JAVA both for other-language
> procedures called by RPG and RPG procedures called by CL, C or Java.
> They control the way certain types are returned and passed by value, in
> either direction.
>
> The *CL means "use the CL conventions for returning values".  You could
> use *CL for RPG to RPG procedures, if you wanted, as long as both caller
> and callee were compiled with the same prototype.
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.


************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information 
which may be confidential or privileged and is intended only for the individual 
or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the 
contents of this message.
All personal messages express views solely of the sender, which are not to be 
attributed to Lincare Holdings Inc., and may not be copied or distributed 
without this disclaimer.
If you received this message in error, please notify us immediately at 
MailAdmin@lincare.com or (800) 284-2006.
************************************************************************************************************************************************************************************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.