Re: Solved. Re: Fwd: Inspecting objects

Thomas Nelson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On 3/22/2010 2:36 AM, Daniel Wallin wrote:
> On Fri, Mar 19, 2010 at 11:11:18AM -0700, Thomas Nelson wrote:
>
>> Solved... My bad.  It turns out it had to do with how I was exporting
>> the object... turns out it's helpful to wait till after you've created
>> the instance before you inject a back ref.
>>
>> Any interest on the list for a patch with the following enhancements:
>> 1) Export a luabind::wrap_base derived object to an arbitrary
>> table/namespace in the lua from C++
>>
> What does "export" mean in this context?
>
Certainly, at the moment it behaves very similarly to luabind::globals 
function and in fact it may be a good idea to ultimately put the 
functionality there.  It is actually an interim step on the way allow me 
to make a class created in C++ visible in the lua as a specified lua 
subclass (I need that functionality for scene loading, but it is gonna 
be a week or two before I get around to actually writing the code to do 
this.)

>> 2) Allow methods to be overridden on a per instance basis
>>
> This can be done with the code on the master branch, see:
>
>    http://github.com/luabind/luabind/commit/4b52671
>
And that's what I get from working from the release.  How stable is the 
trunk at the moment?  I'd rather use your code for this than mine.

> I couldn't apply the patch you sent later in this thread. Could you turn
> it into a unified diff (diff -u)?
>
Of course, It will be a couple days before I get it together though.


------------------------------------------------------------------------------
Download Intel&#174; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.