From: <and...@co...> - 2006-07-09 19:53:41
|
I would prefer two functions that specify via their name what the function does rather than one function with a boolean parameter for these two reasons: 1. Let's not make old programs refuse to compile. 2. Readability is higher if you look at updateNow() or updateDeferred compared to update( true ) update( false ) best regards, Andrew Thomas Hansen wrote: >On 7/9/06, Conrado PLG <con...@gm...> wrote: > > >>I'm adding a bool parameter to the updateWidget method, so it becomes >>void Widget::updateWidget( bool update = true ) >>If the update parameter is false, it will only invalidate the window. >>Though I will check with Thomas if it's OK (hi Thomas, is it OK? :) ) >>, it'll probably be in the next release. >> >> > >Sure, sounds reasonable... > > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >SmartWin-General mailing list >Sma...@li... >https://lists.sourceforge.net/lists/listinfo/smartwin-general > > > |