So, sorry for the top-post and footer (dang phone), but I just have to say a few things:
dynamic_cast is very heavyweight. You are saving *one* pointer, is it really worth it? And as for the table store, the mytable->at(0,0) does not return the WText as another type, your WText should be a child of what the at(0,0) returns, hence get its children first, right? Sent from my Windows Mobile phone From: Wim Dumon <[email protected]> Sent: Thursday, November 18, 2010 2:42 AM To: [email protected] <[email protected]> Subject: Re: [Wt-interest] Re-access text in a WTable 2010/11/18 Dmitriy Igrishin <[email protected]>: > > PS. dynamic_cast in that case is used to downcast here, not upcast. > I wrote that to check if you were paying attention :-) Use of dynamic_cast<> defeats compile-time type checks to some degree, so indeed use it with care. I'm also not a big supporter of using the GUI as data store, but sometimes you have to be pragmatic and it could be the clearest way here. It's up to Magnus to decide on that. BR, W. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
