[C++-sig] Re: Boost.Python: few thoughts and questions...

Roman Sulzhyk roman_sulzhyk at yahoo.com
Sat Jun 14 00:38:42 CEST 2003


--- David Abrahams <dave at boost-consulting.com> wrote:
> Nicodemus <nicodemus at globalite.com.br> writes:
> 
> > David Abrahams wrote:
> >
[snip]
> >
> > Pyste does not export the base's member functions in the derived
> > class. If the user wants functions from the base class, he should
> > export the base class too. Perhaps this behaviour should change?
> 
> Often base class partitioning is merely an implementation detail.  It
> seems to me that if public bases are not explicitly exported they
> should be exported implicitly, unless explicitly suppressed.
> 
> But I might be wrong about that.

David, I'd like to side with you on this - sometimes people do
partitioning of base classes as an implementation detail, and you're
just interested in exporting a top level class to python, without
worrying where its member functions are originating. To me it seems
that exposing all of the base classes to python, like Nicodemus is
suggesting, is viable but less elegant.

> -- 
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com
> 
> 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com




More information about the Cplusplus-sig mailing list