[wx-discuss] wxTNG: compatibility with wx2 API

Julian Smart julian at anthemion.co.uk
Thu Feb 16 08:47:44 PST 2006


Hi Stefan,

At 15:35 16/02/2006, you wrote:
>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.

It would be great if we could incorporate compatibility into the wx3
implementation without a full wx3-on-wx2 or wx2-on-wx3, but I expect
this will be quite limited (not at all full backward compatibility).
For example if a wxWindow is an object not a pointer, then immediately
the syntax becomes very different.

However, there's nothing to stop us from having different levels
of compatibility, for example: (1) built-in, (2) add-on extra libs, (3) 
wx2-on-wx3.

I'd be interested to know what you feel about how much compatibility
can be built into wx3.

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

Phasing in the wx3 port of wxWidgets 2 (wx2-on-wx3) would be cool, since it
would allow the native wx2 wrappers to degrade/die gracefully
as the wx3 port is phased in. The 3-step approach previously mentioned
incorporates the best of both layering approaches and means we can really
concentrate on the API without trying to do everything at once.
Breaking up the task like this makes it suddenly seem a lot more
realistic that we'll make progress in a reasonable time frame.

Regards,

Julian




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