Re: class proposal 2

"Mark Hahn" <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Christian Tismer wrote:

> Eeek: Does this then still work?

Well actually nothing works yet :-)

> class A(parents):
>      """__doc__"""
>
>      class localClass(otherParents):
>          pass # whatever you like here
>
> So a class statement without a class name is a class section?

Yes.  I was a bit concerned about reusing the class keyword but I think it
is readable and unambiguous.  I can always make up a new keyword but the
class one fits so well.

> Just wanted you to be aware of class nesting. :-)

I wasn't aware of class nesting.  I knew about nested functions.  What
happens with nested classes?  Is the inner one just an attribute of the
outer one?  If so, then I have to think about how the nested objects work
with the new nested class/factory objects.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.