[wx-discuss] wxWidgets version 3?

Robin Dunn robin at alldunn.com
Wed Feb 15 17:13:36 PST 2006


Vadim Zeitlin wrote:
> On Wed, 15 Feb 2006 15:45:31 -0800 Robin Dunn <robin at alldunn.com> wrote:
> 
> RD> Goal #1:  wxTNG shall make it very easy to create language bindings such 
> RD> as wxPython.
> 
>  It's not very surprizing that you should say this, of course, but it can
> potentially be quite a big problem because some of the other changes risk
> to go in the opposite direction.
> 
> RD> a. Reduce the reliance on virtual methods to be as small as possible. 
> 
>  In one possible design I'm thinking of there are no virtual functions at
> all so this might make you happy.

It certainly would!

> 
> RD> b. "Clean" headers without a lot of heavy macro use or complex C++ 
> RD> cruft.
> 
>  OTOH just about anything I think of for wxTNG involves using complex C++
> which will probably be unparsable by SWIG (unless its template support has
> improved beyong my wildest dreams). I really don't know how to reconcile
> wxTNG plans with SWIG features. I'm very curious how does Stefan deal with
> this.

If this is the price of having to virtuals then I would be willing to 
give up on this one.  On the other hand, the template support in SWIG 
has improved, although I haven't tried using it to know how much 
improvement.

> 
>  Personally I think that maybe the only way to make it work is to have a
> wx2-like low-level library with wxTNG API on top of it. This would allow to
> continue using SWIG (on low-level library headers) and also keep some
> (most?) compatibility with wx2 API, too.

That sounds like a lot of work, and would probably have maintenance 
issues, unless some parts of it could be autogenerated in some way.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-discuss-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-discuss-help at lists.wxwidgets.org





More information about the wx-discuss mailing list