bug with wxVariant
Vadim Zeitlin
vadim at wxwindows.org
Sat Sep 23 09:42:24 PDT 2006
On Sat, 23 Sep 2006 12:24:36 -0400 Sebastien Senechal <seb at cyberdine.ca> wrote:
SS> 2. wxVariant 'SHOULD be a container for converting objects!!!
I don't want to start the discussion about whether it should be or not but
clearly it isn't.
SS> to fastest way for me to conver an int was to do
SS> wxVariant(str).GetLong(). am i wrong?
This surely doesn't look like the fastest or most intuitive way to do it
for me. I'd suggest wxString::ToLong().
SS> Also in language as C#, 'object' is a type encpasulating most types,
SS> and is very poerwful and convenient...
C++ isn't C#.
SS> Ass i am working with genereric types, this is a must.
But it can be implemented in different ways.
SS> 3. wxVariant shouldn't exist or should be rewritten if that is not the
SS> purpose.
You can't seriously propose changing existing classes used by thousands
if not millions lines of code to do something completely different from
what they do now, can you? I'd gladly replace wxVariant with something else
myself but let's be a bit serious. Also, I'm far from sure that copying C#
is such a great idea and it's definitely not the only one.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list