Re: abstract unified interface

David Abrahams <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <[email protected]>
Daniel Wallin <[email protected]> writes:

>>>With compile time generated converters that are
>>>language dependent these kind of things are more convenient.
>>>
>>>This would maybe include things like transforming:
>>>
>>>   f(T*) [ adopt(_1) ]
>>>
>>>to
>>>
>>>   f(adopted_pointer<T>)
>>>
>>> I don't know.. 
>> Really?  I wouldn't have thought so.  I'd just build an AST of the
>> policies on the registration side and walk it with a visitor inside
>> the language-specific component.  Am I missing something?
>
> I don't know. You would visit the policies at init time and setup some
> function pointers or whatever to do the actual policy calls at runtime?

Something like that.

> Can you elaborate?

It would be up to each language backend how it wants to translate
policies into something it can interpret.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.