Re: new round
Alexander Nasonov <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
Daniel Wallin wrote:
> Alexander Nasonov wrote:
>
>> On Thursday 26 February 2004 13:29, David Abrahams wrote:
>>
>>> Alexander Nasonov writes:
>>>
>>>> The x_module object is a root of information about entities defined
>>>> there. They can be introduced like this:
>>>>
>>>> x_module
>>>> [
>>>> def("free_function", free_function),
>>>> class_<X>("X")
>>>> [
>>>> def("member_function", &X::member_function)
>>>> ],
>>>> ];
>>>
>>>
>>> Sure!
>>
>>
>>
>> I decided to minimize compile-time checks to reduce compilation time. For
>> example, there is no compile-time check for member_function to belong
>> to X.
>> I'll implement it as a runtime function later.
>
>
> This likely won't work. We need to know the type of the wrapped class
> when generating the member function dispatcher.
def("member_function", &X::member_function)
it's here ^^^
Though, I don't know how to handle this: class_("X")<X,X_impl>[ /* ... */ ].
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click