I'm not sure I completely understand your concern here, but the variable set is in the current method's scope (the method being the C++ method that's running). If the method is defined is defined at the top-level class, for example, then everything is ok. If this is in a method defined by a subclass, then it will probably need to call the attribute assignment method.
Rick On Wed, Mar 17, 2010 at 11:30 AM, Brandon Cherry <bran...@safedatausa.com> wrote: > Maybe this is a question regarding context objects. > > For example: > > context->SetObjectVariable("SQLRETURN", context->Int32ToObject((int32_t) > retc)); > > Would this not be trying to set the variable SQLRETURN in the methods > current variable space? To get set properly, I think it needs to go > through the "SQLRETURN=" method for the class. > -- > Brandon Cherry > Network Engineer, Safe Data, Inc. > (910) 285-7200 ext 3017 > http://www.safedatausa.com/ > > On 3/17/2010 11:27 AM, Rick McGuire wrote: >> I'm not sure what you're really trying to accomplish in the C++ code. >> >> Rick >> >> On Wed, Mar 17, 2010 at 11:23 AM, Brandon Cherry >> <bran...@safedatausa.com> wrote: >>> This might be the best way to explain what I think is happening in some >>> C++ code. >>> >>> b = .bar~new() >>> say b~test >>> b~tryToSetIt() >>> say b~test >>> b~setIt() >>> say b~test >>> >>> ::class foo >>> >>> ::attribute test >>> >>> ::class bar subclass foo >>> >>> ::method tryToSetIt >>> expose test >>> test = 'This is a test' >>> >>> ::method setIt >>> self~'test=':super('This is a test') >>> >>> How would you accomplish the setIt method in C++? >>> -- >>> Brandon Cherry >>> Network Engineer, Safe Data, Inc. >>> (910) 285-7200 ext 3017 >>> http://www.safedatausa.com/ >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, find bugs >>> proactively, and fine-tune applications for parallel performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> _______________________________________________ >>> Oorexx-devel mailing list >>> Oorexx-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel >>> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Oorexx-devel mailing list >> Oorexx-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/oorexx-devel >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel