No subject


Thu Nov 10 03:57:02 UTC 2011


solution, across
different scripting languages.

Anyone gets interested on this topic please join.
-- 
cheers,
-dongxu
__END__
http://search.cpan.org/~dongxu

------=_Part_174804_12768381.1177585472010
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Richard, CC: all,<br><br>I am recently thinking about how to deal with c++ template class in QT/KDE bindings. <br>Inside QT4 I found three places where templates get involved:<br>1) typedef<br>2) function parameter, return type
<br>3) QT signal, slot<br><br>It is a little bit hard to support template class inside scripting language, how do you <br>make it available for qtruby (or not) ? This was not mentioned on kdebindings ruby <br>page. Sorry I am totally new to ruby.
<br><br>Idea in my mind is:<br>1) get all template declarations from source;<br>2) introduce a base template in perl for those types which share the same base template<br>    like QList<Q3DockWindow *>, QList<Q3ToolBar *> we create QList.
<br>    such base template can create a specific namespace for demanded type runtimely, say <br>    QList_Q3DockWindow_Ptr (cached in future), and push all available methods into it.<br clear="all">    Inside QList c++ code holds a function dictionary to cast generic pointer from vm to 
<br>    template type instance (possibly by interpret_cast or static_cast);<br><br>Could you pls explain something you've done in qtbudy or your ideas?<br>From my personal point of view, that'll be nice if we can setup a generic solution, across 
<br>different scripting languages. <br><br>Anyone gets interested on this topic please join. <br>-- <br>cheers,<br>-dongxu<br>__END__<br><a href="http://search.cpan.org/~dongxu">http://search.cpan.org/~dongxu</a>

------=_Part_174804_12768381.1177585472010--



More information about the Kde-bindings mailing list