[wx-discuss] wxTNG: compatibility with wx2 API

Stefan Csomor csomor at advancedconcepts.ch
Thu Feb 16 07:35:34 PST 2006


Hi 


> 0. No compatibility at all, while we might keep [almost] the 
> same class names (wx::Window) we wouldn't try to preserve their 
> semantics (e.g. I think wx::Window should be used as a value, not as a

> pointer) nor their methods names and signatures
> 
> 1. Try to preserve some compatibility with wx2 API, e.g. 
> provide wxWindow as synonym for the new wx::Window, keep passing them
by 
> pointer, but feel free to change other important things
> 
> 2. Keep as much compatibility as possible, by providing backwards-
> compatible wrappers around the new constructs (or, OTOH, new wrappers
> around the old API)
> 
> and, of course, many intermediate variants.
> 
>  So why are we/you (Stefan) aiming at for wxTNG?

as an overall direction #2 : I'd like to provide as much source code
compatibility as possible, without sacrifying goals that are too
important.

So this would eg mean that while wx3 might have a wx::Window with value
semantics, there still would be a wxWindow for keeping old code running.

Now to the wx3 wrapping wx2 vs wx2 wrapping wx3 question - this deserves
a Wiki topic, of course ...

- there are definitely many ideas that could be exposed using High-Level
wrappers around wx2, and the plus side - you are absolutely right on
that - would be the almost immediate availability

- on the other hand if we to it that way, code using wx2 will never
benefit from anything, and I don't think many projects will do a
complete rewrite, so wx3 wrapping wx2 will keep the old code and old
problems there for a long time, and us having to support wx2 ... while
wx2 wrapping wx3 will allow both sides to move gradually, us by
replacing parts of full wx2 implementation to wx2 wrappers, and the
projects by using 'native' wx3 in new parts as the move along ...

Best,

Stefan

---------------------------------------------------------------------
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