On Tue, Sep 8, 2009 at 2:10 PM, Rick McGuire<object.r...@gmail.com> wrote:
> Ok, I've added a couple of new APIs. The first is a GetCSelf() API > that will return the same value that would normally be passed as a > CSELF argument. This is really the one you want to use for your > purposes. The other API is a variant of ObjectToCSelf() that takes a > starting scope for the lookup. Thanks Rick. This is the one I was going to try to do myself this evening: +POINTER RexxEntry ObjectToCSelfScoped(RexxThreadContext *c, RexxObjectPtr o, RexxObjectPtr s) +{ + ApiContext context(c); + try + { + // ask the object to figure this out + return ((RexxObject *)o)->getCSelf((RexxObject *)s); + } + catch (RexxNativeActivation *) + { + } + return NULL; +} -- Mark Miesfeld ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel