On Wed, Mar 17, 2010 at 2:57 PM, Mark Miesfeld <miesf...@gmail.com> wrote: > On Wed, Mar 17, 2010 at 10:46 AM, Brandon Cherry > <bran...@safedatausa.com> wrote: >> Thanks Mark, this also answered another question I had been wondering >> about. (What does .nil, .true, and .false map to in C++?) > > Brandon, > > One thing if you just glance at the code: > > .nil maps to context->Nil() > .true maps to context->True() > .false maps to context->False() > > Or really, to be more precise, the Nil(), True(), and False() APIs. > > In the ooDialog code I use a technique where I use the > RequestGlobalReference() API to stash copies of these objects in some > global variables in the ooDialog code. I do that because those objects > are used so much in the code and this way there is not a request to > the interpreter kernel to pass the objects over each time.
Really not necessary. References to these objects are stored directly in the interface vector, so there's no need to cross that boundary each time. They are already getting cached for you. Rick > > TheTrueObj, TheFalseObj, and the TheNilObj are all not a part of the > C++ API, but rather of the ooDialog code. > > -- > Mark Miesfeld > > ------------------------------------------------------------------------------ > 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