[C++-sig] Re: Re: sub module support in V2
david.abrahams at rcn.com
Mon Jun 10 03:23:40 CEST 2002
----- Original Message -----
From: "Dave Hawkes" <daveh at cadlink.com>
To: <c++-sig at python.org>
Sent: Sunday, June 09, 2002 9:17 PM
Subject: [C++-sig] Re: Re: sub module support in V2
> "David Abrahams" <david.abrahams at rcn.com> wrote in message
> news:28bc01c21015$dfc9fef0$6601a8c0 at boostconsulting.com...
> > I
> > > like any of this, so maybe there should just be an assertion if the
> > parent
> > > classes are not created prior to the nested classes?
> > I thought of that; I think it's about all we can do...
> > ...unless we add a parent scope argument to class' constructor,
> > of v1. At least it could be optional in v2.
> How large a depth of nested classes do we have to support? Its just too
> complexity for a little gain. I think for now it's not unreasonable that
> user creates the nested classes in order. If we come up with a better
> solution later it won't break anything.
I think the optional parent scope constructor argument is a better
solution, and I don't like to have lots of ways to say the same thing (it's
un-pythonic), so I'd rather go with that.
More information about the Cplusplus-sig