[C++-sig] Re: FW: Injected constructors

David Abrahams dave at boost-consulting.com
Thu Jul 24 12:32:18 CEST 2003


"Roman Yakovenko" <romany at actimize.com> writes:

> Just a question what is wrong with static member function or global
> function make_xxx?  

Good point.  init_factory was going to be a global function, but I
guess I like "make_init" much better than "init_factory".  Thanks!

> The idiom of constructing object and then making additional
> initialization is already used in Boost.Python - borrowed function
> for constructing handle.

Sure; that's

      .def(init_factory(f))

or, I guess:

      .def(make_init(f))

right?

> Also in Python code it will be written explicit what programmer is
> going to do.  Did I missed something?

I don't know.  What point are you trying to make with this remark?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list