Hey OvermindDL1,

2010/11/18 Overmind DL1 <[email protected]>

> So, sorry for the top-post and footer (dang phone), but I just have to
> say a few things:
>
> dynamic_cast is very heavyweight.
>
How do we measure it ? :-)


>
> You are saving *one* pointer, is it really worth it?
>
For one pointer - no. But for all pointers of the WEB (Internet) application
(including pointers of the Wt itself) intended to serve for thousands
simultaneous users it can be worth it. If it possible to save a memory why
not do it ? :-)
Anyway, this is a question about CPU overhead (dynamic_cast) or memory
overhead (pointers). It's up to programmer to decide on it (as Wim noted).


> 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?
>
Yep. WTable::elementAt() returns WTableCell instance which is a container.


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



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

Reply via email to