
"Noah Stein" <noah@acm.org> wrote in message news:200411121528426.SM00924@enki... | > -----Original Message----- | > From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] | > On Behalf Of Thorsten Ottosen | > Sent: Friday, November 12, 2004 2:47 PM | > To: boost@lists.boost.org | > Subject: [boost] Re: [Review] Named parameters library | | | > 1. Clearly, this is not nice | > | > window* w = new_window("alert", true, true, false, 77, 65); | > | > However, the amount of work needed to code parameters for this is quite | > large. | > A simple, effective way is just to do it like this: | > | > window* w = new_window("alert"); | > w->set_resizable( true ); | > w->set_height( 77 ); | > .... | > and you might provide chaining to make it more concise. In addition there | > is | > no forwarding problems and you might have these | > functions anyway. | > | | What about the situation where you need to specify the parameters at | construction, e.g. the RAII paradigm? I don't think I understand what you're saying. -Thorsten